Skip to content

Commit

Permalink
dev/financial#163 Comment all the places where removal of contributio…
Browse files Browse the repository at this point in the history
…nTypeID proposed
  • Loading branch information
eileenmcnaughton committed Dec 14, 2020
1 parent 9ff75ce commit d1c11f5
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions CRM/Contribute/BAO/Contribution/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ public static function processConfirm(

// 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'] = $financialTypeID;
//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
Expand Down
2 changes: 0 additions & 2 deletions CRM/Contribute/BAO/ContributionPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,7 @@ public static function sendMail($contactID, $values, $isTest = FALSE, $returnMes
$tplParams['financialTypeId'] = $values['financial_type_id'];
$tplParams['financialTypeName'] = CRM_Core_DAO::getFieldValue('CRM_Financial_DAO_FinancialType',
$values['financial_type_id']);
// Legacy support
$tplParams['contributionTypeName'] = $tplParams['financialTypeName'];
$tplParams['contributionTypeId'] = $values['financial_type_id'];
}

if ($contributionPageId = CRM_Utils_Array::value('id', $values)) {
Expand Down
1 change: 0 additions & 1 deletion CRM/Contribute/Form/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,6 @@ protected function processCreditCard($submittedValues, $lineItem, $contactID) {
);

$paymentParams['contributionID'] = $contribution->id;
$paymentParams['contributionTypeID'] = $contribution->financial_type_id;
$paymentParams['contributionPageID'] = $contribution->contribution_page_id;
$paymentParams['contributionRecurID'] = $contribution->contribution_recur_id;

Expand Down
2 changes: 0 additions & 2 deletions CRM/Event/Form/Registration/Confirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -563,11 +563,9 @@ public function postProcess() {
//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;
Expand Down
1 change: 0 additions & 1 deletion CRM/Member/Form/Membership.php
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,6 @@ public function submit() {

$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'];
Expand Down

0 comments on commit d1c11f5

Please sign in to comment.