From 8700d539bc8509f80b329fbaad2e01e4e7a8507b Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 12 Oct 2023 08:15:57 +1300 Subject: [PATCH] Add self_cancel_xfer tokens --- CRM/Event/Tokens.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CRM/Event/Tokens.php b/CRM/Event/Tokens.php index 258ea73bfb5c..ed4f80665606 100644 --- a/CRM/Event/Tokens.php +++ b/CRM/Event/Tokens.php @@ -191,6 +191,9 @@ protected function getEventTokenValues(int $eventID = NULL): array { 'loc_block_id.phone_2_id.phone_ext', 'loc_block_id.phone_2_id.phone_type_id:label', 'is_show_location:label', + 'allow_selfcancelxfer', + 'allow_selfcancelxfer:label', + 'selfcancelxfer_time', 'is_public:label', 'is_share', 'is_share:label', @@ -263,6 +266,8 @@ protected function getExposedFields(): array { 'description', 'is_show_location', 'is_public', + 'allow_selfcancelxfer', + 'selfcancelxfer_time', 'confirm_email_text', 'is_monetary', 'fee_label', @@ -285,6 +290,8 @@ protected function getTokenMetadataOverrides(): array { 'is_public' => ['audience' => 'sysadmin'], 'is_show_location' => ['audience' => 'sysadmin'], 'is_monetary' => ['audience' => 'sysadmin'], + 'allow_selfcancelxfer' => ['audience' => 'sysadmin'], + 'selfcancelxfer_time' => ['audience' => 'sysadmin'], ]; }