From 1675ba6dce306589e3b5e52d8abc3cd2fac0881f Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Sun, 25 Dec 2016 22:48:42 +0530 Subject: [PATCH] CRM-19800, cleaned money for total amount ---------------------------------------- * CRM-19800: Incorrect Amount recorded in civicrm_financial_trxn table https://issues.civicrm.org/jira/browse/CRM-19800 --- CRM/Event/Form/Participant.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index 38b453fa7e..e98716c8c5 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -945,6 +945,9 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment } $config = CRM_Core_Config::singleton(); + if (isset($params['total_amount'])) { + $params['total_amount'] = CRM_Utils_Rule::cleanMoney($params['total_amount']); + } if ($this->_isPaidEvent) { $contributionParams = array(); -- 2.25.1