*
* @param int $id
* The event id to copy.
- * boolean $afterCreate call to copy after the create function
* @param array $params
+ *
* @return CRM_Event_DAO_Event
* @throws \CRM_Core_Exception
*/
public static function copy($id, $params = []) {
$eventValues = [];
- //get the require event values.
+ //get the required event values.
$eventParams = ['id' => $id];
$returnProperties = [
'loc_block_id',
}
$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];
}