dev/financial#163 Comment all the places where removal of contributionTypeID proposed
authoreileen <emcnaughton@wikimedia.org>
Fri, 11 Dec 2020 02:35:46 +0000 (15:35 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 15 Dec 2020 02:28:31 +0000 (15:28 +1300)
CRM/Contribute/BAO/ContributionPage.php
CRM/Contribute/Form/Contribution.php
CRM/Contribute/Form/Contribution/Confirm.php
CRM/Event/Form/Registration/Confirm.php
CRM/Member/Form/Membership.php

index e5235acaea8f088fa0169ec05fc717a12c502ed2..90e8ec6ef594883aa2884edcd4e6fc49f0c9f3bd 100644 (file)
@@ -369,7 +369,6 @@ class CRM_Contribute_BAO_ContributionPage extends CRM_Contribute_DAO_Contributio
           $values['financial_type_id']);
         // Legacy support
         $tplParams['contributionTypeName'] = $tplParams['financialTypeName'];
-        $tplParams['contributionTypeId'] = $values['financial_type_id'];
       }
 
       if ($contributionPageId = CRM_Utils_Array::value('id', $values)) {
index 1fc9dc4063994da1cb40e7bd6b3483e13a3f8039..54c6be460011080c421b992b5f1c985feccd8a47 100644 (file)
@@ -1114,7 +1114,6 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
     );
 
     $paymentParams['contributionID'] = $contribution->id;
-    $paymentParams['contributionTypeID'] = $contribution->financial_type_id;
     $paymentParams['contributionPageID'] = $contribution->contribution_page_id;
     $paymentParams['contributionRecurID'] = $contribution->contribution_recur_id;
 
index fda165b2a03ba765b77c367f0eddb222b5eced30..45a59aa9caef303a738cd563b4d9ca266b657003 100644 (file)
@@ -2558,8 +2558,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
 
     // add some financial type details to the params list
     // if folks need to use it
-    //CRM-15297 deprecate contributionTypeID
-    $paymentParams['financial_type_id'] = $paymentParams['financialTypeID'] = $paymentParams['contributionTypeID'] = $financialType->id;
+    $paymentParams['financial_type_id'] = $paymentParams['financialTypeID'] = $financialType->id;
     //CRM-15297 - contributionType is obsolete - pass financial type as well so people can deprecate it
     $paymentParams['financialType_name'] = $paymentParams['contributionType_name'] = $form->_params['contributionType_name'] = $financialType->name;
     //CRM-11456
index 14afb06fe5ba23bdd9b3f502c2eddab132cd7b3e..d83cad562f706f6cf8446fcd6656e6397f01f668 100644 (file)
@@ -563,11 +563,9 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration {
           //passing contribution id is already registered.
           $contribution = $this->processContribution($this, $value, $result, $contactID, $pending, $this->_paymentProcessor);
           $value['contributionID'] = $contribution->id;
-          $value['contributionTypeID'] = $contribution->financial_type_id;
           $value['receive_date'] = $contribution->receive_date;
           $value['trxn_id'] = $contribution->trxn_id;
           $value['contributionID'] = $contribution->id;
-          $value['contributionTypeID'] = $contribution->financial_type_id;
         }
         $value['contactID'] = $contactID;
         $value['eventID'] = $this->_eventId;
index 3d6e1c8230f6ab1dfadcfca3ac3192ae82ad4514..2439dec25c6d59b75791d43087cef8502a375837 100644 (file)
@@ -1339,7 +1339,6 @@ DESC limit 1");
 
         $paymentParams['contactID'] = $this->_contactID;
         $paymentParams['contributionID'] = $contribution->id;
-        $paymentParams['contributionTypeID'] = $contribution->financial_type_id;
         $paymentParams['contributionPageID'] = $contribution->contribution_page_id;
         $paymentParams['contributionRecurID'] = $contribution->contribution_recur_id;
         $params['contribution_id'] = $paymentParams['contributionID'];