]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Controller/LocationController.php
Add locked field
[airbundle] / Controller / LocationController.php
index 0f47a99c281f0493a46124170dd51247915f371c..7f1a96bd4b70bd58aedc73ba74ed9e67862e3fcd 100644 (file)
@@ -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