From ec1e8314c78ace32c2aba0e6ea5152341e1430ab Mon Sep 17 00:00:00 2001 From: Sarah Poger Gladstone Date: Mon, 27 May 2019 09:22:10 -0400 Subject: [PATCH] Allow tokens of type event_registrationpage to work for private events --- fancytokens.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fancytokens.php b/fancytokens.php index 9d5e1b5..fa10748 100644 --- a/fancytokens.php +++ b/fancytokens.php @@ -491,7 +491,7 @@ function fancytokens_civicrm_tokens( &$tokens ){ ( e.registration_start_date is null || now() >= e.registration_start_date ), '1', '0') as show_registration_link 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."' ORDER BY e.start_date";