Skip to content

Commit

Permalink
Allow arrays as default value for checkboxes elements
Browse files Browse the repository at this point in the history
  • Loading branch information
jensschuppe committed Feb 21, 2024
1 parent c5fc67c commit dafbca8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/civiremote_event/src/Form/RegisterForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,8 @@ public static function defaultValue($field, $field_name, $type) {
case 'checkboxes':
if (
isset($field['value'])
&& array_key_exists($field['value'], $field['options'])
) {
$default_value = $field['value'];
$default_value = (array) $field['value'];
}
break;
case 'radios':
Expand Down

0 comments on commit dafbca8

Please sign in to comment.