Skip to content

Commit

Permalink
[#23] 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 290ffc5 commit 469653c
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 @@ -231,9 +231,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 469653c

Please sign in to comment.