CRM-18467 Set amount to appear on pay-later receipt
authorKen West <ken.west@internode.on.net>
Mon, 25 Apr 2016 11:21:55 +0000 (21:21 +1000)
committerdeb.monish <monish.deb@webaccessglobal.com>
Tue, 17 May 2016 16:17:49 +0000 (21:47 +0530)
CRM/Contribute/BAO/Contribution/Utils.php

index fc9c9c2859300e9caa8e5674a2f62198e9bf8eb6..7415bd279796ba0181b530b1584e283264ba5948 100644 (file)
@@ -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