Skip to content
Permalink
Browse files

Move hiddenField handling to FormHelper

The input creation should unset the property.

Refs #10138
  • Loading branch information...
markstory committed Feb 13, 2017
1 parent a6872f8 commit b0a3fe8d378ac4666f7d4900fd9d2fcaecaafd96
Showing with 2 additions and 1 deletion.
  1. +1 −0 src/View/Helper/FormHelper.php
  2. +1 −1 src/View/Widget/MultiCheckboxWidget.php
@@ -2018,6 +2018,7 @@ public function multiCheckbox($fieldName, $options, array $attributes = [])
];
$hidden = $this->hidden($fieldName, $hiddenAttributes);
}
unset($attributes['hiddenField']);
return $hidden . $this->widget('multicheckbox', $attributes);
}
@@ -187,7 +187,7 @@ protected function _renderInput($checkbox, $context)
'templateVars' => $checkbox['templateVars'],
'attrs' => $this->_templates->formatAttributes(
$checkbox,
['name', 'value', 'text', 'options', 'label', 'val', 'type', 'hiddenField']
['name', 'value', 'text', 'options', 'label', 'val', 'type']
)
]);

0 comments on commit b0a3fe8

Please sign in to comment.
You can’t perform that action at this time.