From 9920e99c0458ef39afe564419cbca18c8881df55 Mon Sep 17 00:00:00 2001 From: jennylee Date: Mon, 21 Jul 2014 12:56:18 -0400 Subject: [PATCH] BUG-15198 Text field con query en modo view sigue ejecutando el query. Todos los campos que tienen habillitada la opcion de query se ejecutaban en modo view cambiando el valor escogido o ingresado por el usuario a el valor que devuelve el query. Se agrego una validacion para evitar que cuando el form esta en modo view se ejecute el query para los siguientes fields: text, currency, percentage, textarea, hidden, suggest. --- gulliver/system/class.xmlform.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php index 7faef22e7..7630e2c46 100755 --- a/gulliver/system/class.xmlform.php +++ b/gulliver/system/class.xmlform.php @@ -319,6 +319,11 @@ class XmlForm_Field if ($this->sql === '') { return 1; } + + if($this->renderMode == "view" && ($this->type == "text" || $this->type == "currency" || $this->type == "percentage" || $this->type == "textarea" || $this->type == "hidden" || $this->type == "suggest")){ + return 1; + } + if (! $this->sqlConnection) { $this->sqlConnection = 'workflow'; }