From 4d935ea5484f8f819ebf3623c536317cc5597654 Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 1 Feb 2021 18:02:04 +1300 Subject: [PATCH] dev/core#2348 fix unreleased regression --- CRM/Event/Import/Parser/Participant.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CRM/Event/Import/Parser/Participant.php b/CRM/Event/Import/Parser/Participant.php index 3bb21269c1..6057b9a82c 100644 --- a/CRM/Event/Import/Parser/Participant.php +++ b/CRM/Event/Import/Parser/Participant.php @@ -626,13 +626,15 @@ class CRM_Event_Import_Parser_Participant extends CRM_Event_Import_Parser { } /** - * @deprecated - this is part of the import parser not the API & needs to be moved on out - * * @param array $params * @param $onDuplicate * * @return array|bool * + * @throws \CiviCRM_API3_Exception + * @deprecated - this is part of the import parser not the API & needs to be + * moved on out + * */ protected function deprecated_create_participant_formatted($params, $onDuplicate) { if ($onDuplicate != CRM_Import_Parser::DUPLICATE_NOCHECK) { @@ -642,7 +644,7 @@ class CRM_Event_Import_Parser_Participant extends CRM_Event_Import_Parser { return $error; } } - return civicrm_api3_participant_create($params); + return civicrm_api3('Participant', 'create', $params); } } -- 2.25.1