Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose fee_label for event tokens #27372

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CRM/Event/Tokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ protected function getEventTokenValues(int $eventID = NULL): array {
'event_type_id:name',
'pay_later_text',
'pay_later_receipt',
'fee_label',
'custom.*',
], $this->getExposedFields()))
->execute()->first();
Expand Down Expand Up @@ -273,6 +272,7 @@ protected function getExposedFields(): array {
'is_public',
'confirm_email_text',
'is_monetary',
'fee_label',
];
}

Expand Down
2 changes: 2 additions & 0 deletions tests/phpunit/CRM/Utils/TokenConsistencyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,7 @@ protected function getExpectedEventTokenOutput(): string {
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
';
}

Expand Down Expand Up @@ -1020,6 +1021,7 @@ protected function getEventTokens(): array {
'{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',
];
}

Expand Down