Errors when copying participants with differences in the participant record
Hi @mattwire
I'm finding some issues copying the participant records when I have one or both of the following:
- Different fees for each participant for paid events
- Different values in custom field(s)
I get an error message when I try to copy:
Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred.
Mandatory key(s) missing from params array: line_total
I don't know if it's related but I'm also getting a notice in the logs:
Notice: Undefined index: start_action_condition in CRM_AdvancedEvents_BAO_RecurringEntity->getRecursionFromSchedule() (line 427 of [sitefiles]/sites/default/files/civicrm/ext/civicrm-advanced-events-master/CRM/AdvancedEvents/BAO/RecurringEntity.php).
Also, just to make life complicated, some records are copied but some are not (we did find that we could copy in batches but I can't remember which way around we decided was the most reliable method - something like 'if custom value = x, do those first and copy participant records, then do custom value = y)