From 1777ab27ce714d6597f83dc69cafd7d4db762753 Mon Sep 17 00:00:00 2001 From: eileen Date: Sat, 15 Aug 2020 11:51:04 +1200 Subject: [PATCH] Use more appropriate money format function --- CRM/Campaign/Form/Campaign.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Campaign/Form/Campaign.php b/CRM/Campaign/Form/Campaign.php index 509b1278f4..b47cee77e7 100644 --- a/CRM/Campaign/Form/Campaign.php +++ b/CRM/Campaign/Form/Campaign.php @@ -222,7 +222,7 @@ class CRM_Campaign_Form_Campaign extends CRM_Core_Form { $this->add('wysiwyg', 'goal_general', ts('Campaign Goals'), ['rows' => 2, 'cols' => 40]); $this->add('text', 'goal_revenue', ts('Revenue Goal'), ['size' => 8, 'maxlength' => 12]); $this->addRule('goal_revenue', ts('Please enter a valid money value (e.g. %1).', - [1 => CRM_Utils_Money::format('99.99', ' ')] + [1 => CRM_Utils_Money::formatLocaleNumericRoundedForDefaultCurrency(99.99)] ), 'money'); // is this Campaign active -- 2.25.1