Merge pull request #2508 from Jennydmz/master

BUG-15198 Text field con query en modo view sigue ejecutando el query.
This commit is contained in:
julceslauhub
2014-07-22 08:58:22 -04:00

View File

@@ -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';
}