Rapsys Git
/
airbundle
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add location prefill when on a location view
[airbundle]
/
Controller
/
SessionController.php
diff --git
a/Controller/SessionController.php
b/Controller/SessionController.php
index 8db10c62188f0fe45bb7df5ed14979fdf0d4e418..183ac97ebf50048944ae62d8756f2d8365b91c37 100644
(file)
--- a/
Controller/SessionController.php
+++ b/
Controller/SessionController.php
@@
-75,10
+75,11
@@
class SessionController extends DefaultController {
//Fetch calendar
//TODO: highlight with current session route parameter
//Fetch calendar
//TODO: highlight with current session route parameter
- $calendar = $doctrine->getRepository(Session::class)->fetchCalendarByDatePeriod($this->translator, $period, null, $request->get('session'));
+ $calendar = $doctrine->getRepository(Session::class)->fetchCalendarByDatePeriod($this->translator, $period, null, $request->get('session')
, !$this->isGranted('IS_AUTHENTICATED_REMEMBERED')
);
//Fetch locations
//Fetch locations
- $locations = $doctrine->getRepository(Location::class)->fetchTranslatedLocationByDatePeriod($this->translator, $period);
+ //XXX: we want to display all active locations anyway
+ $locations = $doctrine->getRepository(Location::class)->fetchTranslatedLocationByDatePeriod($this->translator, $period/*, !$this->isGranted('IS_AUTHENTICATED_REMEMBERED')*/);
//Render the view
return $this->render('@RapsysAir/session/index.html.twig', ['title' => $title, 'section' => $section, 'calendar' => $calendar, 'locations' => $locations]+$context+$this->context);
//Render the view
return $this->render('@RapsysAir/session/index.html.twig', ['title' => $title, 'section' => $section, 'calendar' => $calendar, 'locations' => $locations]+$context+$this->context);