BUG 8010 Checkbox no se muestra en modo view cuando labelonright="1"

This issue was fixed. there was one variable without value.
This commit is contained in:
Carlos Pacha
2011-11-17 12:23:58 -04:00
parent e64e994784
commit fd22763458

View File

@@ -2360,7 +2360,7 @@ class XmlForm_Field_Checkbox extends XmlForm_Field
$checked = (isset ( $value ) && ($value == $this->value)) ? 'checked' : ''; $checked = (isset ( $value ) && ($value == $this->value)) ? 'checked' : '';
if ($this->labelOnRight) { if ($this->labelOnRight) {
$html = ''; $html = '';
$html = "<input id='form[" . $this->name . "]' value='{$this->value}' name='form[" . $this->name . "]' type='checkbox' $checked $readOnly $disabled > $html = "<input id='form[" . $this->name . "]' value='{$this->value}' name='form[" . $this->name . "]' type='checkbox' $checked $readOnly disabled >
<span class='FormCheck'>" . $this->label . '</span></input>'; <span class='FormCheck'>" . $this->label . '</span></input>';
} else { } else {
$html = "<input id='form[" . $this->name . "]' value='{$this->value}' name='form[" . $this->name . "]' type='checkbox' $checked $readOnly disabled/>"; $html = "<input id='form[" . $this->name . "]' value='{$this->value}' name='form[" . $this->name . "]' type='checkbox' $checked $readOnly disabled/>";