Commit 3b0d9bb8 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Filtrage et trie des affectations

parent ae70dcd5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
    }