X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FBAO%2FEvent.php;h=cf52a5f32cc057dad9088c673c292575837c5b2d;hb=ee1da343d1593483e73bcd891b8a877e307e887c;hp=ab90197b4b61693263de73b2e447a5f731ad74f6;hpb=458a3ae851b312fb051a3519037ad488c85ca722;p=civicrm-core.git diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index ab90197b4b..cf52a5f32c 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -1646,6 +1646,10 @@ WHERE id = $cfID } $skip = TRUE; } + // for checkboxes, change array of [key => bool] to array of [idx => key] + elseif ($dao->html_type == 'CheckBox') { + $customVal = array_keys(array_filter($params[$name])); + } else { $customVal = $params[$name]; }