Commit 4bb7f2db authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files
parent 9a4cf4d1
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -431,7 +431,12 @@ class DemandeMiseEnPaiementViewHelper extends AbstractHtmlElement
        }

        $misesEnPaiement = $serviceAPayer->getMiseEnPaiement()->filter(function (MiseEnPaiement $miseEnPaiement) use ($typeHeures) {
            return $miseEnPaiement->getTypeHeures() === $typeHeures;
            $mepth = $miseEnPaiement->getTypeHeures();
            if ($typeHeures->getCode() === TypeHeures::ENSEIGNEMENT){
                return in_array($mepth->getCode(),[TypeHeures::FI,TypeHeures::FA,TypeHeures::FC,TypeHeures::FC_MAJOREES]);
            }else{
                return $mepth->getCode() === $typeHeures->getCode();
            }
        });
        /* @var $misesEnPaiement MiseEnPaiement[] */
        foreach ($misesEnPaiement as $miseEnPaiement) {
+1 −1

File changed.

Contains only whitespace changes.