From b85391961dafc29943596e6f0e00e2b08bfa6278 Mon Sep 17 00:00:00 2001 From: jennylee Date: Thu, 14 Aug 2014 14:49:09 -0400 Subject: [PATCH] BUG-15198 Problemas con querys en fields. Se aumenta una validacion para el caso en que el campo este en modo 'edit' y tenga ya datos almacenados, en este caso no se ejecutara el query y se mostrara el valor ya almacenado. --- gulliver/system/class.xmlform.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php index 2e40da9af..e47f6306b 100755 --- a/gulliver/system/class.xmlform.php +++ b/gulliver/system/class.xmlform.php @@ -320,7 +320,7 @@ class XmlForm_Field return 1; } - if(isset($this->mode) && $this->mode == "edit" && (isset($this->owner->values[$this->name]) && $this->owner->values[$this->name] !== "")){ + if(isset($this->mode) && $this->mode == "edit" && (isset($this->owner->values[$this->name]) && $this->owner->values[$this->name] !== "") && ($this->type == "text" || $this->type == "currency" || $this->type == "percentage" || $this->type == "textarea" || $this->type == "hidden" || $this->type == "suggest")){ return 1; }