Skip to content

Commit

Permalink
nestedInput needed upsetting so it doesn't appear as an attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
lilHermit committed Jan 24, 2017
1 parent 3ec192f commit fcadcc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/View/Helper/FormHelper.php
Expand Up @@ -1043,6 +1043,7 @@ public function input($fieldName, array $options = [])
$nestedInput = true;
}
$nestedInput = isset($options['nestedInput']) ? $options['nestedInput'] : $nestedInput;
unset($options['nestedInput']);

if ($nestedInput === true && $options['type'] === 'checkbox' && !array_key_exists('hiddenField', $options) && $label !== false) {
$options['hiddenField'] = '_split';
Expand Down

0 comments on commit fcadcc5

Please sign in to comment.