From: Ken West Date: Mon, 25 Apr 2016 11:21:55 +0000 (+1000) Subject: CRM-18467 Set amount to appear on pay-later receipt X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cfef25b99f0cf4c828f9ae5c11dc9d37cb3cfe04;p=civicrm-core.git CRM-18467 Set amount to appear on pay-later receipt --- diff --git a/CRM/Contribute/BAO/Contribution/Utils.php b/CRM/Contribute/BAO/Contribution/Utils.php index fc9c9c2859..7415bd2797 100644 --- a/CRM/Contribute/BAO/Contribution/Utils.php +++ b/CRM/Contribute/BAO/Contribution/Utils.php @@ -212,6 +212,10 @@ class CRM_Contribute_BAO_Contribution_Utils { 'payment_processor_id' => 0, ); } + elseif (empty($form->_values['amount'])) { + // If the amount is not in _values[], set it + $form->_values['amount'] = $form->_params['amount']; + } CRM_Contribute_BAO_ContributionPage::sendMail($contactID, $form->_values, $contribution->is_test