diff --git a/Civi/Token/TokenCompatSubscriber.php b/Civi/Token/TokenCompatSubscriber.php index 459d1a050d5a..b349f9c3808c 100644 --- a/Civi/Token/TokenCompatSubscriber.php +++ b/Civi/Token/TokenCompatSubscriber.php @@ -74,6 +74,7 @@ public function onRender(TokenRenderEvent $e): void { $modifier = $tokenParts[1] ?? ''; $smartyVars[$smartyName] = \CRM_Utils_Array::pathGet($e->row->tokens, explode('.', $tokenParts[0]), $e->context['locale'] ?? NULL); if ($smartyVars[$smartyName] instanceof \Brick\Money\Money) { + // TODO: We should reuse the filters from TokenProcessor::filterTokenValue() if ($modifier === 'crmMoney') { $smartyVars[$smartyName] = \Civi::format() ->money($smartyVars[$smartyName]->getAmount(), $smartyVars[$smartyName]->getCurrency());