Commit b565d669 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Merge branch 'master' of git.unicaen.fr:dsi/sygal

parents 7338e8d9 d73c0522
Loading
Loading
Loading
Loading
Loading
+5 −1
Changes for module/Application/src/Application/Controller/TheseController.php: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -81,11 +81,15 @@ class TheseController extends AbstractController
        $needsRedirect  = false;
        $queryParams    = $this->params()->fromQuery();
        $etatThese      = $this->params()->fromQuery($name = 'etatThese');
        $etablissement  = $this->params()->fromQuery($name = 'etablissement');
        if ($etatThese === null) { // null <=> paramètre absent
            $queryParams = array_merge($queryParams, [$name => These::ETAT_EN_COURS]);
            $needsRedirect = true;
        }
        $etablissement  = $this->params()->fromQuery($name = 'etablissement');
        if ($etablissement === null) { // null <=> paramètre absent
            $queryParams = array_merge($queryParams, [$name => ""]);
            $needsRedirect = true;
        }
        $sort = $this->params()->fromQuery('sort');
        if ($sort === null) { // null <=> paramètre absent
            $queryParams = array_merge($queryParams, ['sort' => 't.datePremiereInscription', 'direction' => Sortable::ASC]);