BUG 6642 Currency fields do not pass value to next step

- Changes applied at 2.0.16
- Fix same problem to view mode for yes/no fields
This commit is contained in:
Enrique Ponce De Leon
2011-04-14 15:12:52 -04:00
parent 087fb82281
commit b36d2c7da1

View File

@@ -1928,7 +1928,7 @@ class XmlForm_Field_YesNo extends XmlForm_Field
$value = $this->getPMTableValue($owner);
}
if ($value == '') $value = '0';
if ($this->renderMode = '') $this->renderMode = $this->mode;
if ($this->renderMode == '') $this->renderMode = $this->mode;
$html = '';
if ($this->renderMode == 'edit'){ //EDIT MODE
$readOnlyText = ($this->readonly == 1 || $this->readonly == '1') ? 'disabled' : '';