From 26a5d0631a79308caa5bdd90ad3517d0f6cdc38e Mon Sep 17 00:00:00 2001 From: isUnknown Date: Thu, 19 Sep 2024 16:18:35 +0200 Subject: [PATCH] fix calendar strip time display --- site/config/routes/get-current-season-calendar.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/site/config/routes/get-current-season-calendar.php b/site/config/routes/get-current-season-calendar.php index 6c02926..dbe695c 100644 --- a/site/config/routes/get-current-season-calendar.php +++ b/site/config/routes/get-current-season-calendar.php @@ -33,7 +33,7 @@ return [ "title" => $event->title()->value(), "place" => $event->place()->value(), "authors" => $event->authors()->value(), - "hideSessionsOnHome" => (bool) $event->hideSessionsOnHome()->value(), + "hideSessionsOnHome" => $event->hideSessionsOnHome()->value() == 'true' ? true : false, "eventUrl" => $event->url(), "public" => $event->public()->value(), "duration" => $event->duration()->value(), @@ -79,7 +79,6 @@ return [ "ticketingUrl" => $ticketingUrl, "bookableStock" => $bookableStock, "totalStock" => (int) $event->totalStock()->value(), - "hideSessionsOnHome" => (bool) $event->hideSessionsOnHome()->value() ]); }