PM-1436 "0016560: Dynaform conditions don't work on checkboxes when dynaform is in view mode" SOLVED
This commit is contained in:
@@ -3220,7 +3220,7 @@ class XmlForm_Field_Checkbox extends XmlForm_Field
|
|||||||
} elseif ($this->mode === 'view') {
|
} elseif ($this->mode === 'view') {
|
||||||
$checked = (isset( $value ) && ($value == $this->value)) ? 'checked' : '';
|
$checked = (isset( $value ) && ($value == $this->value)) ? 'checked' : '';
|
||||||
if ($this->labelOnRight) {
|
if ($this->labelOnRight) {
|
||||||
$html = "<input value='{$this->value}' type='checkbox' $checked $readOnly disabled />
|
$html = "<input id='form[" . $this->name . "]' value='{$this->value}' 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}' type='checkbox' $checked $readOnly disabled />";
|
$html = "<input id='form[" . $this->name . "]' value='{$this->value}' type='checkbox' $checked $readOnly disabled />";
|
||||||
|
|||||||
Reference in New Issue
Block a user