From 2fa3273e6a9601f8984013f15e77b962c60a16d2 Mon Sep 17 00:00:00 2001 From: Jaap Jansma Date: Mon, 15 Mar 2021 14:27:27 +0100 Subject: [PATCH 1/2] Fixed issue dev/core#2449 --- CRM/Contribute/Form/Contribution/Confirm.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CRM/Contribute/Form/Contribution/Confirm.php b/CRM/Contribute/Form/Contribution/Confirm.php index c28899bd4a94..bce5c4d5e8b7 100644 --- a/CRM/Contribute/Form/Contribution/Confirm.php +++ b/CRM/Contribute/Form/Contribution/Confirm.php @@ -2772,10 +2772,7 @@ public function processConfirm( if (!empty($form->_paymentProcessor)) { $contributionParams['payment_instrument_id'] = $paymentParams['payment_instrument_id'] = $form->_paymentProcessor['payment_instrument_id']; } - - // @todo this is the wrong place for this - it should be done as close to form submission - // as possible - $paymentParams['amount'] = CRM_Utils_Rule::cleanMoney($paymentParams['amount']); + $contribution = CRM_Contribute_Form_Contribution_Confirm::processFormContribution( $form, $paymentParams, From 0ff3bef9493c5b18cc118c2c1e3cc0b0810e5bf0 Mon Sep 17 00:00:00 2001 From: Jaap Jansma Date: Mon, 15 Mar 2021 14:38:57 +0100 Subject: [PATCH 2/2] Fixed issue dev/core#2449 --- CRM/Contribute/Form/Contribution/Confirm.php | 1 - 1 file changed, 1 deletion(-) diff --git a/CRM/Contribute/Form/Contribution/Confirm.php b/CRM/Contribute/Form/Contribution/Confirm.php index bce5c4d5e8b7..42717e39bef4 100644 --- a/CRM/Contribute/Form/Contribution/Confirm.php +++ b/CRM/Contribute/Form/Contribution/Confirm.php @@ -2772,7 +2772,6 @@ public function processConfirm( if (!empty($form->_paymentProcessor)) { $contributionParams['payment_instrument_id'] = $paymentParams['payment_instrument_id'] = $form->_paymentProcessor['payment_instrument_id']; } - $contribution = CRM_Contribute_Form_Contribution_Confirm::processFormContribution( $form, $paymentParams,