From cdf39af0b7c121931574a79be11f00deb43373c1 Mon Sep 17 00:00:00 2001 From: Rohan Katkar Date: Tue, 25 Nov 2014 16:41:01 +0530 Subject: [PATCH] Fix for CRM-15557 Allow decimal 'other amount' field in priceset --- CRM/Price/BAO/PriceField.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/CRM/Price/BAO/PriceField.php b/CRM/Price/BAO/PriceField.php index 88f89876ea..2d98f9b01a 100644 --- a/CRM/Price/BAO/PriceField.php +++ b/CRM/Price/BAO/PriceField.php @@ -340,14 +340,8 @@ class CRM_Price_BAO_PriceField extends CRM_Price_DAO_PriceField { } //CRM-10117 - if (!empty($qf->_quickConfig)) { - $message = ts('Please enter a valid amount.'); - $type = 'money'; - } - else { - $message = ts('%1 must be an integer (whole number).', array(1 => $label)); - $type = 'positiveInteger'; - } + $message = ts('%1 must be in proper money format (decimal point/comma/space is allowed).', array(1 => $label)); + $type = 'money'; // integers will have numeric rule applied to them. $qf->addRule($elementName, $message, $type); break; -- 2.25.1