From 3be4a20ef9e60a580c9bf28fee9e948f329ea5b4 Mon Sep 17 00:00:00 2001 From: Brian Shaughnessy Date: Mon, 13 Mar 2017 10:02:49 -0400 Subject: [PATCH] CRM-19469 support returning payment params after mapping --- CRM/Contribute/Form/Contribution/Confirm.php | 2 +- CRM/Core/Payment/Form.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Contribution/Confirm.php b/CRM/Contribute/Form/Contribution/Confirm.php index f6f1e657cc..0b8baea3b8 100644 --- a/CRM/Contribute/Form/Contribution/Confirm.php +++ b/CRM/Contribute/Form/Contribution/Confirm.php @@ -2269,7 +2269,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr $membershipParams['campaign_id'] = CRM_Utils_Array::value('campaign_id', $this->_values); } - CRM_Core_Payment_Form::mapParams($this->_bltID, $this->_params, $membershipParams, TRUE); + $this->_params = CRM_Core_Payment_Form::mapParams($this->_bltID, $this->_params, $membershipParams, TRUE); $this->doMembershipProcessing($contactID, $membershipParams, $premiumParams, $this->_lineItem); } else { diff --git a/CRM/Core/Payment/Form.php b/CRM/Core/Payment/Form.php index d4ee8c09d7..5d5a478fbc 100644 --- a/CRM/Core/Payment/Form.php +++ b/CRM/Core/Payment/Form.php @@ -386,6 +386,9 @@ class CRM_Core_Payment_Form { } } } + + //CRM-19469 provide option for returning modified params + return $dst; } /** -- 2.25.1