Skip to content
Snippets Groups Projects
Commit 3b0d9bb8 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Filtrage et trie des affectations

parent ae70dcd5
No related branches found
No related tags found
No related merge requests found
......@@ -217,6 +217,7 @@ class Individu {
if ($active) {
$affectations = array_filter($affectations, function(IndividuAffectation $a) { return ($a->getDateFin() === null);});
}
usort($affectations, function(IndividuAffectation $a, IndividuAffectation $b) { return $a->getDateDebut() > $b->getDateDebut();});
return $affectations;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment