diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php index 0bd3d906e..d3b4064dd 100755 --- a/gulliver/system/class.xmlform.php +++ b/gulliver/system/class.xmlform.php @@ -1989,6 +1989,13 @@ class XmlForm_Field_Textarea extends XmlForm_Field $r = 1; foreach ($values as $v) { + $this->executeSQL( $owner, $r ); + if (isset( $this->sqlOption )) { + $firstElement = key( $this->sqlOption ); + if (isset( $firstElement )) { + $v = $firstElement; + } + } $scrollStyle = $this->style . "overflow:scroll;overflow-y:scroll;overflow-x:hidden;overflow:-moz-scrollbars-vertical;"; $html = ''; if ($this->renderMode == 'edit') {