From: Tim Otten Date: Sat, 12 Sep 2015 07:00:03 +0000 (-0700) Subject: Remove invalid $config->defaultSymbol X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3692ee9328dc45ab6f266112536c39c019675e3c;p=civicrm-core.git 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. --- 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 );