From 955be257fbef26b836a600e7371c15a6b33adb6b Mon Sep 17 00:00:00 2001 From: larssandergreen <lars@wildsight.ca> Date: Thu, 7 Sep 2023 21:26:50 -0600 Subject: [PATCH] Expose fee_lable for event tokens --- CRM/Event/Tokens.php | 2 +- tests/phpunit/CRM/Utils/TokenConsistencyTest.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Event/Tokens.php b/CRM/Event/Tokens.php index 7700beac45..286d56cbbf 100644 --- a/CRM/Event/Tokens.php +++ b/CRM/Event/Tokens.php @@ -205,7 +205,6 @@ class CRM_Event_Tokens extends CRM_Core_EntityTokens { 'event_type_id:name', 'pay_later_text', 'pay_later_receipt', - 'fee_label', 'custom.*', ], $this->getExposedFields())) ->execute()->first(); @@ -273,6 +272,7 @@ class CRM_Event_Tokens extends CRM_Core_EntityTokens { 'is_public', 'confirm_email_text', 'is_monetary', + 'fee_label', ]; } diff --git a/tests/phpunit/CRM/Utils/TokenConsistencyTest.php b/tests/phpunit/CRM/Utils/TokenConsistencyTest.php index 36e94388a9..7811b8f067 100644 --- a/tests/phpunit/CRM/Utils/TokenConsistencyTest.php +++ b/tests/phpunit/CRM/Utils/TokenConsistencyTest.php @@ -721,6 +721,7 @@ event.registration_url :' . CRM_Utils_System::url('civicrm/event/register', NULL event.pay_later_receipt :Please transfer funds to our bank account. event.custom_1 :my field event.confirm_email_text : +event.fee_label :Event fees '; } @@ -1020,6 +1021,7 @@ United States', $tokenProcessor->getRow(0)->render('message')); '{event.pay_later_receipt}' => 'Pay Later Receipt Text', '{event.' . $this->getCustomFieldName('text') . '}' => 'Enter text here :: Group with field text', '{event.confirm_email_text}' => 'Confirmation Email Text', + '{event.fee_label}' => 'Fee Label', ]; } -- 2.25.1