Skip to content

Commit

Permalink
Fixed the multiple option when it is set false on belongsToMany selects
Browse files Browse the repository at this point in the history
  • Loading branch information
keomaborges committed Feb 28, 2018
1 parent 2d32a1e commit 42c731a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Helper/FormHelper.php
Expand Up @@ -1288,7 +1288,7 @@ protected function _magicOptions($fieldName, $options, $allowOverride)

if ($allowOverride && substr($fieldName, -5) === '._ids') {
$options['type'] = 'select';
if (empty($options['multiple'])) {
if (!isset($options['multiple']) || $options['multiple']) {
$options['multiple'] = true;
}
}
Expand Down

0 comments on commit 42c731a

Please sign in to comment.