Merge code from github to bitbucket 2014-08-14

This commit is contained in:
Julio Cesar Laura
2014-08-14 13:53:06 -04:00
37 changed files with 484 additions and 154 deletions

View File

@@ -319,6 +319,15 @@ class XmlForm_Field
if ($this->sql === '') {
return 1;
}
if(isset($this->mode) && $this->mode == "edit" && (isset($this->owner->values[$this->name]) && $this->owner->values[$this->name] !== "")){
return 1;
}
if(isset($this->mode) && $this->mode == "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';
}