Skip to content
Snippets Groups Projects
Commit 35aefe46 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Merge remote-tracking branch 'origin/master'

parents 8fbe0fdc 575517b0
Branches
Tags
No related merge requests found
Pipeline #35354 passed
......@@ -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'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment