From 431c56b27e654e8580ad92ba9f026ececf1fbfcb Mon Sep 17 00:00:00 2001 From: eileen Date: Sat, 14 Dec 2019 08:50:22 +1300 Subject: [PATCH] fix price field money clean --- CRM/Price/Form/Field.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Price/Form/Field.php b/CRM/Price/Form/Field.php index a3ab154010..5e4a5c4e8d 100644 --- a/CRM/Price/Form/Field.php +++ b/CRM/Price/Form/Field.php @@ -610,10 +610,12 @@ class CRM_Price_Form_Field extends CRM_Core_Form { * Process the form. * * @throws \CRM_Core_Exception + * @throws \CiviCRM_API3_Exception */ public function postProcess() { // store the submitted values in an array $params = $this->controller->exportValues('Field'); + $params['price'] = CRM_Utils_Rule::cleanMoney($params['price']); $params['is_display_amounts'] = CRM_Utils_Array::value('is_display_amounts', $params, FALSE); $params['is_required'] = CRM_Utils_Array::value('is_required', $params, FALSE); -- 2.25.1