Import - Participant - Custom participant date fields are not formatted
The date fields are not converted from the import date format to the default date format and thus end up beeing imported with a date value of 0.
Additionally 2 notice errors appear for each mapped custom particpant field in the import file:
Notice: Undefined offset: 8 in CRM_Event_Import_Parser_Participant->import() (line 296 of /opt/buildkit/build/dmaster/sites/all/modules/civicrm/CRM/Event/Import/Parser/Participant.php).
Notice: Undefined offset: 8 in CRM_Event_Import_Parser_Participant->import() (line 300 of /opt/buildkit/build/dmaster/sites/all/modules/civicrm/CRM/Event/Import/Parser/Participant.php).
Steps to reproduce:
- Create a custom date field for participants
- Import a participant with a non default date format: participant_test.csv
See https://issues.civicrm.org/jira/browse/CRM-19386 for the same issue with activity imports.
A PR will be provided.