Commit 35aefe46 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Merge remote-tracking branch 'origin/master'

parents 8fbe0fdc 575517b0
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -219,11 +219,17 @@ class EnseignementSaisieFormViewHelper extends AbstractHtmlElement
        $element = $fieldset->getObject()->getService()->getElementPedagogique();
        if ($element) {
            $typesIntervention = $element->getTypeIntervention();
            $typesIntervention->getValues();           // Retourne un tableau des éléments
            $elements = $typesIntervention->toArray(); // Copie en tableau
            usort($elements, function ($a, $b) {
                return $a->getOrdre() <=> $b->getOrdre();
            });
        } else {
            $qb = $this->getServiceTypeIntervention()->finderByHistorique();
            $this->getServiceTypeIntervention()->finderByContext($qb);
            $this->getServiceTypeIntervention()->finderByVisibleExterieur(true, $qb);
            $typesIntervention = $this->getServiceTypeIntervention()->getList($qb);

        }

        $res = $this->getView()->formHidden($fieldset->get('service'));