From 76ce0e835135c21f39a3d0bc502b53eed35da185 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 19 Jun 2023 22:58:18 +1200 Subject: [PATCH] Expose a few more event fields as tokens They are used in the message templates --- CRM/Event/Tokens.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Event/Tokens.php b/CRM/Event/Tokens.php index 6652723bcc26..4f1c0fe65d01 100644 --- a/CRM/Event/Tokens.php +++ b/CRM/Event/Tokens.php @@ -196,11 +196,16 @@ protected function getEventTokenValues(int $eventID = NULL): array { 'is_show_location:label', 'is_public', 'is_public:label', + 'is_share', + 'is_share:label', + 'requires_approval', + 'requires_approval:label', 'is_monetary:label', 'event_type_id:label', 'event_type_id:name', 'pay_later_text', 'pay_later_receipt', + 'fee_label', 'custom.*', ], $this->getExposedFields())) ->execute()->first();