From: yashodha Date: Thu, 24 May 2018 14:44:35 +0000 (+0530) Subject: CRM-21632 - {membership.fee} prints out in documents with 9 decimal places X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=daec3f08534e62da69fcc03cff29282ebba7587d;p=civicrm-core.git CRM-21632 - {membership.fee} prints out in documents with 9 decimal places --- diff --git a/CRM/Utils/Token.php b/CRM/Utils/Token.php index d879d6f697..e3bdcc102b 100644 --- a/CRM/Utils/Token.php +++ b/CRM/Utils/Token.php @@ -1762,6 +1762,7 @@ class CRM_Utils_Token { 'id' => $membership['membership_type_id'], 'return' => 'minimum_fee', )); + $value = CRM_Utils_Money::format($value, NULL, NULL, TRUE); } catch (CiviCRM_API3_Exception $e) { // we can anticipate we will get an error if the minimum fee is set to 'NULL' because of the way the