From 051938c6eeb79b84ad8024959b6b242b4519bd53 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Tue, 16 Feb 2016 15:17:14 +0530 Subject: [PATCH] CRM-11153 -- custom tokens not replaced for schedule reminder --- Civi/Token/TokenCompatSubscriber.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Civi/Token/TokenCompatSubscriber.php b/Civi/Token/TokenCompatSubscriber.php index 104d9f1117..3eaf57d3b7 100644 --- a/Civi/Token/TokenCompatSubscriber.php +++ b/Civi/Token/TokenCompatSubscriber.php @@ -83,6 +83,10 @@ class TokenCompatSubscriber implements EventSubscriberInterface { $row->context['controller'] ); + // merge the custom tokens in the $contact array + if (!empty($contactArray[$contactId])) { + $contact = array_merge($contact, $contactArray[$contactId]); + } $row->context('contact', $contact); } } -- 2.25.1