From f9b991fa5b78e37e7485fe46f80c1afcf59ba698 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Tue, 10 Aug 2021 21:08:12 -0700 Subject: [PATCH] Scheduled Reminders UI - Show activity tokens in admin GUI --- CRM/Admin/Form/ScheduleReminders.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CRM/Admin/Form/ScheduleReminders.php b/CRM/Admin/Form/ScheduleReminders.php index 882cc0b94e..7218283ed3 100644 --- a/CRM/Admin/Form/ScheduleReminders.php +++ b/CRM/Admin/Form/ScheduleReminders.php @@ -695,8 +695,14 @@ class CRM_Admin_Form_ScheduleReminders extends CRM_Admin_Form { * @return array */ public function listTokens() { - $tokens = CRM_Core_SelectValues::contactTokens(); - $tokens = array_merge(CRM_Core_SelectValues::activityTokens(), $tokens); + $tokenProcessor = new \Civi\Token\TokenProcessor(\Civi::dispatcher(), [ + 'controller' => get_class(), + 'smarty' => FALSE, + 'schema' => ['activityId'], + ]); + $tokens = $tokenProcessor->listTokens(); + + $tokens = array_merge(CRM_Core_SelectValues::contactTokens(), $tokens); $tokens = array_merge(CRM_Core_SelectValues::eventTokens(), $tokens); $tokens = array_merge(CRM_Core_SelectValues::membershipTokens(), $tokens); $tokens = array_merge(CRM_Core_SelectValues::contributionTokens(), $tokens); -- 2.25.1