From f250964048772814954a8b492082faa53487200e Mon Sep 17 00:00:00 2001 From: Jamie McClelland Date: Fri, 3 Feb 2017 11:18:42 -0500 Subject: [PATCH] CRM-19937: use localized symbol instead of dollar sign --- templates/CRM/Price/Form/Calculate.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CRM/Price/Form/Calculate.tpl b/templates/CRM/Price/Form/Calculate.tpl index 3b6471a0ce..5408df48c6 100644 --- a/templates/CRM/Price/Form/Calculate.tpl +++ b/templates/CRM/Price/Form/Calculate.tpl @@ -151,7 +151,7 @@ function calculateSelectLineItemValue(priceElement) { function calculateText(priceElement) { //CRM-16034 - comma acts as decimal in price set text pricing //CRM-19937 - dollar sign easy mistake to make by users. - var textval = parseFloat(cj(priceElement).val().replace(thousandMarker, '').replace('$', '')); + var textval = parseFloat(cj(priceElement).val().replace(thousandMarker, '').replace(symbol, '')); if (isNaN(textval)) { textval = parseFloat(0); -- 2.25.1