program / calendar : add ticket to not connected event if bookingUrl is not empty #4
This commit is contained in:
parent
a2062cd350
commit
4dc2164820
3 changed files with 12 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ function createArraySession($event, $session) {
|
|||
$arraySession['public'] = $event->public();
|
||||
$arraySession['event-url'] = $event->url();
|
||||
$arraySession['duration'] = $event->duration();
|
||||
$arraySession['ticketingUrl'] = $isMapadoEvent ? $session->ticketingUrl() : false;
|
||||
$arraySession['ticketingUrl'] = $isMapadoEvent ? $session->ticketingUrl()->value() : $event->bookingUrl()->value();
|
||||
$arraySession['bookableStock'] = $isMapadoEvent ? $session->bookableStock()->value() : 'free';
|
||||
$arraySession['totalStock'] = $isMapadoEvent ? (int) $event->totalStock()->value() : 'free';
|
||||
$arraySession['color'] = $event->color();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue