From 70ed9060408d946d935e77903de8798ec056bc10 Mon Sep 17 00:00:00 2001 From: Hector Cortez Date: Wed, 21 Aug 2013 11:59:12 -0400 Subject: [PATCH] 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). --- gulliver/system/class.xmlform.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php index 69d5f2856..d3b4064dd 100755 --- a/gulliver/system/class.xmlform.php +++ b/gulliver/system/class.xmlform.php @@ -1990,11 +1990,12 @@ class XmlForm_Field_Textarea extends XmlForm_Field foreach ($values as $v) { $this->executeSQL( $owner, $r ); - $firstElement = key( $this->sqlOption ); - if (isset( $firstElement )) { - $v = $firstElement; + 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') {