X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/248a1dc7d01e44d86252e058f124d3399a46967e..a6d4b638f900b3e1430c1f86d4cdb520f3774e6b:/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