Loading module/Application/src/Application/Controller/TheseController.php +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 Loading @@ -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]); Loading Loading
module/Application/src/Application/Controller/TheseController.php +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 Loading @@ -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]); Loading