Fix multiselect/checkbox custom field defaults on registration profile
authorColeman Watts <coleman@civicrm.org>
Sun, 5 Apr 2020 14:05:21 +0000 (10:05 -0400)
committerColeman Watts <coleman@civicrm.org>
Sun, 5 Apr 2020 14:05:21 +0000 (10:05 -0400)
commita36f32b7583f89143365a6c1c6cce6ab7f38ef46
treeb4b87e5839a53774499a4892add79ba0be570626
parentada800700be13f74650b64ef322e2921d6d64bc3
Fix multiselect/checkbox custom field defaults on registration profile

The CRM_Core_BAO_UFGroup::setProfileDefaults() function expects each field to be an array,
but this function was just passing it the number 1. So it did not have enough field metadata
to correctly format each value.
CRM/Event/BAO/Participant.php