diff --git a/src/Form/Behaviour/ElementsBehaviour.php b/src/Form/Behaviour/ElementsBehaviour.php index 98c1026..393e5d9 100644 --- a/src/Form/Behaviour/ElementsBehaviour.php +++ b/src/Form/Behaviour/ElementsBehaviour.php @@ -512,7 +512,7 @@ public function addMultiCheckbox( array $attributes = [] ) { - $element = new Form\Element\MultiCheckbox($name, $options, $attributes); + $element = new Form\Element\MultiCheckbox($name . '[]', $options, $attributes); if (!$label) { $label = ucfirst($name); @@ -596,4 +596,4 @@ public function addMultiSelect( $name = $name . '[]'; return $this->addSelect($name, $label, $description, $elementOptions, $value, $options, $attributes); } -} \ No newline at end of file +}