Skip to content

Commit

Permalink
Merge branch 'checkboxesDefaultValuesArray' into 1.1.x
Browse files Browse the repository at this point in the history
[#23] Allow arrays as default value for checkboxes elements
  • Loading branch information
jensschuppe committed Feb 21, 2024
2 parents c5fc67c + dafbca8 commit 883c708
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 883c708

Please sign in to comment.