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