From e5b702aad061735448a77d406aad8b4354cb79e0 Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 5 Dec 2018 10:42:03 +1300 Subject: [PATCH] Fix mis-saving of price field values under localisation. The amount is being inappropriately cleaned in the BAO layer - these values should always be clean by the time they get here --- CRM/Member/Form/MembershipBlock.php | 2 -- CRM/Price/BAO/PriceField.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CRM/Member/Form/MembershipBlock.php b/CRM/Member/Form/MembershipBlock.php index 1d9b0815b0b..ca5bbb4bdf9 100644 --- a/CRM/Member/Form/MembershipBlock.php +++ b/CRM/Member/Form/MembershipBlock.php @@ -29,8 +29,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2018 - * $Id$ - * */ /** diff --git a/CRM/Price/BAO/PriceField.php b/CRM/Price/BAO/PriceField.php index 4e63f49f59a..c60089b2069 100644 --- a/CRM/Price/BAO/PriceField.php +++ b/CRM/Price/BAO/PriceField.php @@ -145,7 +145,7 @@ public static function create(&$params) { 'price_field_id' => $priceField->id, 'label' => trim($params['option_label'][$index]), 'name' => CRM_Utils_String::munge($params['option_label'][$index], '_', 64), - 'amount' => CRM_Utils_Rule::cleanMoney(trim($params['option_amount'][$index])), + 'amount' => trim($params['option_amount'][$index]), 'count' => CRM_Utils_Array::value($index, CRM_Utils_Array::value('option_count', $params), NULL), 'max_value' => CRM_Utils_Array::value($index, CRM_Utils_Array::value('option_max_value', $params), NULL), 'description' => CRM_Utils_Array::value($index, CRM_Utils_Array::value('option_description', $params), NULL),