From 8122819aef496dab0ccd8ef5c0925d2d773c44ae Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 12 Oct 2023 09:18:11 +1300 Subject: [PATCH] Remove irrelevant code from previously shared form --- CRM/Event/Form/Participant.php | 6 ------ CRM/Event/Form/Registration/Confirm.php | 6 ------ 2 files changed, 12 deletions(-) diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index 1121f6db7c..a86f361332 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -1702,12 +1702,6 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment // CRM-11124 CRM_Event_BAO_Participant::createDiscountTrxn($form->_eventId, $contribParams, NULL, CRM_Price_BAO_PriceSet::parseFirstPriceSetValueIDFromParams($params)); - // process soft credit / pcp pages - if (!empty($params['pcp_made_through_id'])) { - CRM_Contribute_BAO_ContributionSoft::formatSoftCreditParams($params, $form); - CRM_Contribute_BAO_ContributionSoft::processSoftContribution($params, $contribution); - } - $transaction->commit(); return $contribution; diff --git a/CRM/Event/Form/Registration/Confirm.php b/CRM/Event/Form/Registration/Confirm.php index 647e74c702..5d84a66b68 100644 --- a/CRM/Event/Form/Registration/Confirm.php +++ b/CRM/Event/Form/Registration/Confirm.php @@ -1022,12 +1022,6 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { // CRM-11124 CRM_Event_BAO_Participant::createDiscountTrxn($form->_eventId, $contribParams, NULL, CRM_Price_BAO_PriceSet::parseFirstPriceSetValueIDFromParams($params)); - // process soft credit / pcp pages - if (!empty($params['pcp_made_through_id'])) { - CRM_Contribute_BAO_ContributionSoft::formatSoftCreditParams($params, $form); - CRM_Contribute_BAO_ContributionSoft::processSoftContribution($params, $contribution); - } - $transaction->commit(); return $contribution; -- 2.25.1