'user' => $this->getUser()->getId(),
//Set default slot to evening
//XXX: default to Evening (3)
'user' => $this->getUser()->getId(),
//Set default slot to evening
//XXX: default to Evening (3)
- 'slot' => $doctrine->getRepository(Slot::class)->findOneById(3)
+ 'slot' => $doctrine->getRepository(Slot::class)->findOneById(3),
+ //Set default location to current one
+ 'location' => $location
//Render the view
return $this->render('@RapsysAir/location/view.html.twig', ['id' => $id, 'title' => $title, 'section' => $section, 'calendar' => $calendar, 'locations' => $locations]+$context+$this->context);
//Render the view
return $this->render('@RapsysAir/location/view.html.twig', ['id' => $id, 'title' => $title, 'section' => $section, 'calendar' => $calendar, 'locations' => $locations]+$context+$this->context);