From 3692ee9328dc45ab6f266112536c39c019675e3c Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sat, 12 Sep 2015 00:00:03 -0700 Subject: [PATCH] Remove invalid $config->defaultSymbol Even in v4.5, this field appears to have been undefined, but it probably behaved correctly anyway because the undefined value was passed into a function which didn't need it. --- templates/CRM/common/jsortable.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/CRM/common/jsortable.tpl b/templates/CRM/common/jsortable.tpl index db86e0876c..136236f3d6 100644 --- a/templates/CRM/common/jsortable.tpl +++ b/templates/CRM/common/jsortable.tpl @@ -166,7 +166,7 @@ //plugin to sort on currency cj.fn.dataTableExt.oSort['currency-asc'] = function(a,b) { - var symbol = "{/literal}{$config->defaultCurrencySymbol($config->defaultSymbol)}{literal}"; + var symbol = "{/literal}{$config->defaultCurrencySymbol()}{literal}"; var x = (a == "-") ? 0 : a.replace( symbol, "" ); var y = (b == "-") ? 0 : b.replace( symbol, "" ); x = parseFloat( x ); @@ -175,7 +175,7 @@ }; cj.fn.dataTableExt.oSort['currency-desc'] = function(a,b) { - var symbol = "{/literal}{$config->defaultCurrencySymbol($config->defaultSymbol)}{literal}"; + var symbol = "{/literal}{$config->defaultCurrencySymbol()}{literal}"; var x = (a == "-") ? 0 : a.replace( symbol, "" ); var y = (b == "-") ? 0 : b.replace( symbol, "" ); x = parseFloat( x ); -- 2.25.1