From 95e5776cb795dd29756560b5c736a63814c5cfda Mon Sep 17 00:00:00 2001 From: eileenmcnaugton Date: Wed, 5 Aug 2015 14:54:15 +1200 Subject: [PATCH] CRM-16523 baseIPN test fixes --- CRM/Contribute/BAO/Contribution.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index ae495441a6..55db953b93 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -2360,7 +2360,11 @@ WHERE contribution_id = %1 "; //for tasks 'Change Participant Status' and 'Batch Update Participants Via Profile' case //and cases involving status updation through ipn // whatever that means! - $values['totalAmount'] = $input['amount']; + // total_amount appears to be the preferred input param & it is unclear why we support amount here + // perhaps we should throw an e-notice if amount is set & force total_amount? + if (!empty($input['amount'])) { + $values['totalAmount'] = $input['amount']; + } if ($values['event']['is_email_confirm']) { $values['is_email_receipt'] = 1; -- 2.25.1