Remove irrelevant code from previously shared form
authorEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 11 Oct 2023 20:18:11 +0000 (09:18 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 11 Oct 2023 20:20:34 +0000 (09:20 +1300)
CRM/Event/Form/Participant.php
CRM/Event/Form/Registration/Confirm.php

index 1121f6db7c8978c73c625910865c3c9eab28bd39..a86f361332f5fb8ed47b4060f69cc8c7de468eca 100644 (file)
@@ -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;
index 647e74c70220f2f66eaaa5a6273d9192bcbccf02..5d84a66b683a5f1a2b10073d4528653492c05e29 100644 (file)
@@ -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;