From 2fa3273e6a9601f8984013f15e77b962c60a16d2 Mon Sep 17 00:00:00 2001 From: Jaap Jansma Date: Mon, 15 Mar 2021 14:27:27 +0100 Subject: [PATCH] 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 c28899bd4a..bce5c4d5e8 100644 --- a/CRM/Contribute/Form/Contribution/Confirm.php +++ b/CRM/Contribute/Form/Contribution/Confirm.php @@ -2772,10 +2772,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr 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, -- 2.25.1