fix bookableStock

This commit is contained in:
isUnknown 2024-09-02 14:02:13 +02:00
parent ea052d22f0
commit 9b4e35f3af
8 changed files with 79 additions and 28 deletions

View file

@ -40,7 +40,13 @@ return function($page) {
$isStillShowing = false;
foreach ($sessions->toStructure() as $session) {
$currentSeasonSessions[] = $session->toArray();
$arraySession = $session->toArray();
$arraySession['title'] = $event->title()->value();
$arraySession['authors'] = $event->authors();
$arraySession['place'] = $event->place();
$arraySession['duration'] = $event->isMapadoEvent() == 'true' ? $event->remoteDuration() : $event->duration();
$arraySession['ticketingUrl'] = '';
$currentSeasonSessions[] = $arraySession;
$sessionDate = str_replace('-', '', $session->date()->toDate('YMMdd'));