Skip to content
Permalink
Browse files

Move unset() of hiddenField to FormHelper

FormHelper handles this option there is no need for it to be passed into
the widget.
  • Loading branch information...
markstory committed Feb 11, 2017
1 parent 05e396d commit 441e44ba040124d75e852ab8c6354378e4c340e2
Showing with 2 additions and 1 deletion.
  1. +1 −0 src/View/Helper/FormHelper.php
  2. +1 −1 src/View/Widget/MultiCheckboxWidget.php
@@ -2002,6 +2002,7 @@ public function multiCheckbox($fieldName, $options, array $attributes = [])
];
$hidden = $this->hidden($fieldName, $hiddenAttributes);
}
unset($attributes['hiddenField']);
return $hidden . $this->widget('multicheckbox', $attributes);
}
@@ -186,7 +186,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 441e44b

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