From: Eileen McNaughton Date: Wed, 11 Oct 2023 20:18:11 +0000 (+1300) Subject: Remove irrelevant code from previously shared form X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8122819aef496dab0ccd8ef5c0925d2d773c44ae;p=civicrm-core.git Remove irrelevant code from previously shared form --- 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;