Skip to content
Snippets Groups Projects
Commit f7a20dd0 authored by Jonathan Foucher's avatar Jonathan Foucher
Browse files

Order surveys on manager dashboard. Fixes #831

parent 5af11e34
No related branches found
No related tags found
No related merge requests found
Pipeline #59104 passed
...@@ -84,7 +84,7 @@ class DashboardController extends AbstractController ...@@ -84,7 +84,7 @@ class DashboardController extends AbstractController
array_map( array_map(
function (\App\Domain\Maturity\Model\Survey $survey) { function (\App\Domain\Maturity\Model\Survey $survey) {
return $survey->getReferentiel(); return $survey->getReferentiel();
}, $this->surveyRepository->findAllByCollectivity($collectivity) }, $this->surveyRepository->findAllByCollectivity($collectivity, ['createdAt' => 'DESC'])
), ),
function (array $result, \App\Domain\Maturity\Model\Referentiel $referentiel) { function (array $result, \App\Domain\Maturity\Model\Referentiel $referentiel) {
if (!isset($result[$referentiel->getId()->toString()])) { if (!isset($result[$referentiel->getId()->toString()])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment