Skip to content

Commit

Permalink
Merge pull request #19174 from eileenmcnaughton/conttype
Browse files Browse the repository at this point in the history
dev/financial#163 Removal of contributionTypeID
  • Loading branch information
mattwire authored Dec 23, 2020
2 parents 18d905e + c2978fe commit d830d3a
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion CRM/Contribute/BAO/ContributionPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ public static function sendMail($contactID, $values, $isTest = FALSE, $returnMes
$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
3 changes: 1 addition & 2 deletions CRM/Contribute/Form/Contribution/Confirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2543,8 +2543,7 @@ public 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'] = $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
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 @@ -1321,7 +1321,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 d830d3a

Please sign in to comment.