Allow tokens of type event_registrationpage to work for private events

This commit is contained in:
Sarah Poger Gladstone 2019-05-27 09:22:10 -04:00 committed by GitHub
parent 4333b6ca8e
commit ec1e8314c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -491,7 +491,7 @@ function fancytokens_civicrm_tokens( &$tokens ){
( e.registration_start_date is null || now() >= e.registration_start_date ), '1', '0') as ( e.registration_start_date is null || now() >= e.registration_start_date ), '1', '0') as
show_registration_link show_registration_link
FROM civicrm_event e FROM civicrm_event e
WHERE e.is_active = 1 AND e.is_public = 1 AND e.is_template <> 1 AND WHERE e.is_active = 1 AND e.is_template <> 1 AND
e.start_date >= now() AND e.id = '".$token_event_id."' e.start_date >= now() AND e.id = '".$token_event_id."'
ORDER BY e.start_date"; ORDER BY e.start_date";