From 107567e4d30faa00f09670647991d7cdb3ac43ab Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 29 Nov 2023 01:30:46 +1300 Subject: [PATCH] Remove handling from previously shared code --- CRM/Event/Form/Participant.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index d5c7502ef8..fe384b1d26 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -1602,19 +1602,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment 'note' => $this->getSubmittedValue('note'), 'is_test' => ($this->_mode === 'test)'), ]; - - // reuse id if one already exists for this one (can happen - // with back button being hit etc) - if (!$participantParams['id'] && !empty($params['contributionID'])) { - $pID = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_ParticipantPayment', - $params['contributionID'], - 'participant_id', - 'contribution_id' - ); - $participantParams['id'] = $pID; - } $participantParams['discount_id'] = $this->getSubmittedValue('discount_id'); - $participant = CRM_Event_BAO_Participant::create($participantParams); // Add custom data for participant -- 2.25.1