From 00d8c3927178da3df53c7a47ac445e32195e67b2 Mon Sep 17 00:00:00 2001 From: Cesar Date: Thu, 30 Jan 2020 11:43:16 +0100 Subject: [PATCH] dev/core#5555 - Invalid value in "total_amount" (NaN,N) when creating or editing a membership --- CRM/Member/Form/Membership.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index 8129a226b5..2cb7f837b1 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -504,7 +504,7 @@ class CRM_Member_Form_Membership extends CRM_Member_Form { $totalAmount = CRM_Utils_Array::value('minimum_fee', $values); //CRM-18827 - override the default value if total_amount is submitted if (!empty($this->_submitValues['total_amount'])) { - $totalAmount = $this->_submitValues['total_amount']; + $totalAmount = CRM_Utils_Rule::cleanMoney($this->_submitValues['total_amount']); } // build membership info array, which is used when membership type is selected to: // - set the payment information block -- 2.25.1