Merge pull request #14976 from eileenmcnaughton/import
[civicrm-core.git] / CRM / Event / BAO / Event.php
index ab90197b4b61693263de73b2e447a5f731ad74f6..cf52a5f32cc057dad9088c673c292575837c5b2d 100644 (file)
@@ -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];
                 }