From 210072f755f73fa534e322c4b25532dfd92fbf71 Mon Sep 17 00:00:00 2001 From: Jamie McClelland Date: Fri, 27 Jan 2017 12:36:35 -0500 Subject: [PATCH] CRM-19937 - ensure amount preceded by $ is still treated as a number otherwise the payment fields will not be shown. --- templates/CRM/Price/Form/Calculate.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/CRM/Price/Form/Calculate.tpl b/templates/CRM/Price/Form/Calculate.tpl index 85c46bccb4..3b6471a0ce 100644 --- a/templates/CRM/Price/Form/Calculate.tpl +++ b/templates/CRM/Price/Form/Calculate.tpl @@ -150,7 +150,8 @@ function calculateSelectLineItemValue(priceElement) { */ function calculateText(priceElement) { //CRM-16034 - comma acts as decimal in price set text pricing - var textval = parseFloat(cj(priceElement).val().replace(thousandMarker, '')); + //CRM-19937 - dollar sign easy mistake to make by users. + var textval = parseFloat(cj(priceElement).val().replace(thousandMarker, '').replace('$', '')); if (isNaN(textval)) { textval = parseFloat(0); -- 2.25.1