BUG 12738 SQL doesn't work in GRID - Text-Area fields SOLVED

- When trying to establish a field dependency in grid between a Text field and a Text-area field using an external SQL connection, text-area field remains empty.
- Adding query option in the xmlform on a textarea of a grid(validate).
This commit is contained in:
Hector Cortez
2013-08-21 11:59:12 -04:00
parent 10bdb4b112
commit 70ed906040

View File

@@ -1990,11 +1990,12 @@ class XmlForm_Field_Textarea extends XmlForm_Field
foreach ($values as $v) { foreach ($values as $v) {
$this->executeSQL( $owner, $r ); $this->executeSQL( $owner, $r );
$firstElement = key( $this->sqlOption ); if (isset( $this->sqlOption )) {
if (isset( $firstElement )) { $firstElement = key( $this->sqlOption );
$v = $firstElement; if (isset( $firstElement )) {
$v = $firstElement;
}
} }
$scrollStyle = $this->style . "overflow:scroll;overflow-y:scroll;overflow-x:hidden;overflow:-moz-scrollbars-vertical;"; $scrollStyle = $this->style . "overflow:scroll;overflow-y:scroll;overflow-x:hidden;overflow:-moz-scrollbars-vertical;";
$html = ''; $html = '';
if ($this->renderMode == 'edit') { if ($this->renderMode == 'edit') {