X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/3295c638a175afcc1a8ecb33f09488edbe3b4da6..7a1f38b25022feefe31ca88f0c5f0ef8897231ff:/Controller/LocationController.php diff --git a/Controller/LocationController.php b/Controller/LocationController.php index 0f47a99..7f1a96b 100644 --- a/Controller/LocationController.php +++ b/Controller/LocationController.php @@ -48,7 +48,9 @@ class LocationController extends DefaultController { '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 ]); //Add form to context