Skip to content

Commit

Permalink
Merge pull request #19807 from jaapjansma/dev_2449
Browse files Browse the repository at this point in the history
Fixed issue dev/core#2449: remove an unnecessary call to cleanMoney
  • Loading branch information
eileenmcnaughton authored Mar 15, 2021
2 parents ad3d11f + 0ff3bef commit 0dc105e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions CRM/Contribute/Form/Contribution/Confirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2770,10 +2770,6 @@ 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,
Expand Down

0 comments on commit 0dc105e

Please sign in to comment.