From 57055e58a965ba49444bf3926db5c68fcff28318 Mon Sep 17 00:00:00 2001 From: sushantpaste Date: Thu, 8 Aug 2019 17:47:18 +0530 Subject: [PATCH] Membership fee token fix dev/core/#377 --- CRM/Member/Tokens.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Member/Tokens.php b/CRM/Member/Tokens.php index 44100317ac..455ba74ffa 100644 --- a/CRM/Member/Tokens.php +++ b/CRM/Member/Tokens.php @@ -94,6 +94,9 @@ class CRM_Member_Tokens extends \Civi\Token\AbstractTokenSubscriber { if (in_array($field, ['start_date', 'end_date', 'join_date'])) { $row->tokens($entity, $field, \CRM_Utils_Date::customFormat($actionSearchResult->$field)); } + elseif ($field == 'fee') { + $row->tokens($entity, $field, \CRM_Utils_Money::format($actionSearchResult->$field, NULL, NULL, TRUE)); + } elseif (isset($actionSearchResult->$field)) { $row->tokens($entity, $field, $actionSearchResult->$field); } -- 2.25.1