Commit fb51f3fe authored by Thomas Hamel's avatar Thomas Hamel
Browse files

fix affichage structure lorsque la thèse ne possède pas un type de struct particulier (Etab/UR...)

parent 3ea22146
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -57,12 +57,18 @@ $these = current($doctorant->getTheses());
                    <?php foreach ($doctorant->getTheses() as $these) {
                        if ($these->getEtatThese() === These::ETAT_EN_COURS and $these->estNonHistorise()) {
                            echo "<br/>";
                            if($these->getEtablissement()){
                                echo $this->structure($these->getEtablissement(), false, true);
                            }
                            if($these->getEcoleDoctorale()){
                                echo " - ";
                                echo $this->structure($these->getEcoleDoctorale(), false, true);
                            }
                            if($these->getUniteRecherche()){
                                echo " - ";
                                echo $this->structure($these->getUniteRecherche(), false, true);
                            }
                        }
                        $missions = $doctorant->getMissionsEnseignements();
                        if (!empty($missions)) {
                            echo " - ";
+5 −1
Original line number Diff line number Diff line
@@ -31,10 +31,14 @@ class StructureViewHelper extends AbstractHelper
            $typeStructureClass = "ed";
            $structureCode = $structure->getStructure()->getSigle();
            $structureLibelle = $structure;
        }else{
        }elseif($structure instanceof Structure){
            $typeStructureClass = "structure";
            $structureCode = $structure->getSigle();
            $structureLibelle = $structure;
        }else{
            $typeStructureClass = "";
            $structureCode = "";
            $structureLibelle = "";
        }

        return $this->view->partial('structure.phtml', [