diff --git a/CHANGELOG b/CHANGELOG index 8e04a1faa5117aa98f763d0c08fa39ef0cf79f36..9f635a30e1e8577dee5c37c925b0f1ff5fda4b0b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,8 +1,18 @@ --- -title: "Changement intervenus sur OSE" +title: "Changements intervenus sur OSE" author: Laurent Lécluse - DSI - Unicaen ... +#OSE 6.3.1 (en développement) + +## Corrections de bugs + +* Suppression du bug empêchant de saisir des services référentiels si la structure "UNIV" n'existe pas. + + + + + #OSE 6.3 ## Corrections de bugs diff --git a/module/Application/src/Application/Form/ServiceReferentiel/SaisieFieldset.php b/module/Application/src/Application/Form/ServiceReferentiel/SaisieFieldset.php index aeb24f974bdd0581f907d6b5b5d17e33acd2f359..92614e8ff66bb7e0886b8310ec6604349a6aefe7 100644 --- a/module/Application/src/Application/Form/ServiceReferentiel/SaisieFieldset.php +++ b/module/Application/src/Application/Form/ServiceReferentiel/SaisieFieldset.php @@ -154,9 +154,11 @@ class SaisieFieldset extends AbstractFieldset implements EntityManagerAwareInter { if (!$this->structures) { $qb = $this->getServiceStructure()->finderByEnseignement(); - $univ = $this->getServiceStructure()->getRacine(); - - $this->structures = [$univ->getId() => $univ] + $this->getServiceStructure()->getList($qb); + if (!$univ = $this->getServiceStructure()->getRacine()){ + $this->structures = [$univ->getId() => $univ] + $this->getServiceStructure()->getList($qb); + }else{ + $this->structures = $this->getServiceStructure()->getList($qb); + } } return $this->structures;