Use more appropriate money format function
authoreileen <emcnaughton@wikimedia.org>
Fri, 14 Aug 2020 23:51:04 +0000 (11:51 +1200)
committereileen <emcnaughton@wikimedia.org>
Fri, 14 Aug 2020 23:52:06 +0000 (11:52 +1200)
CRM/Campaign/Form/Campaign.php

index 509b1278f45abbcbb61bcbcd487d43a398b8b364..b47cee77e72bb0c2755967c10b519a853ef44c02 100644 (file)
@@ -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