From f0c40b90352d8332583fbb94c6f6b8d90950ee53 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 28 Oct 2013 10:52:37 -0700 Subject: [PATCH] CRM-13660 - Core Resources - Fix init of CRM.formatMoney --- CRM/Core/Resources.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Resources.php b/CRM/Core/Resources.php index de14019849..d2e79f229e 100644 --- a/CRM/Core/Resources.php +++ b/CRM/Core/Resources.php @@ -456,7 +456,7 @@ class CRM_Core_Resources { // Initialize CRM.url and CRM.formatMoney $url = CRM_Utils_System::url('civicrm/example', 'placeholder', FALSE, NULL, FALSE); $js = "CRM.url('init', '$url');\n"; - $js .= "CRM.formatMoney('init', '" . CRM_Utils_Money::format(1234.56) . "');"; + $js .= "CRM.formatMoney('init', " . json_encode(CRM_Utils_Money::format(1234.56)) . ");"; $this->addScript($js, $jsWeight++, $region); // Add global settings -- 2.25.1