Commit a4f56054 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Merge branch 'master' of git.unicaen.fr:open-source/sygal

parents 4d822d24 bc385a49
Loading
Loading
Loading
Loading
+5 −1
Changes for module/Application/src/Application/Filter/NomCompletFormatter.php: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -131,7 +131,11 @@ class NomCompletFormatter extends AbstractFilter
        if (! $this->patroPlutotQueUsuel) {
            if ($this->avecNomPatro && $nomPatro !== $nomUsuel) {
                if ($this->court) {
                    $result .= "-$nomPatro";
                    $result = "";
                    if ($this->avecCivilite) $result .= "$civilite";
                    if ($this->prenomDabord) $result .= " $prenom";
                    $result .= " $nomPatro-$nomUsuel";
                    if (!$this->prenomDabord) $result .= " $prenom";
                } else {
                    $result .= ", née $nomPatro";
                }
+3 −2
Changes for module/Application/src/Application/Service/These/TheseService.php: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -484,7 +484,7 @@ class TheseService extends BaseService implements ListenerAggregateInterface
        if ($these->getEtablissement()) $pdcData->setEtablissement($these->getEtablissement()->getLibelle());
        if ($these->getEcoleDoctorale()) $pdcData->setEtablissement($these->getEtablissement()->getLibelle());
        if ($these->getDoctorant()) {
            $pdcData->setDoctorant(strtoupper($these->getDoctorant()->getIndividu()->getNomComplet(false, false, false, true, true, true)));
            $pdcData->setDoctorant(strtoupper($these->getDoctorant()->getIndividu()->getNomComplet(false, true, false, true, true, false)));
        }
        if ($these->getDateSoutenance()) $pdcData->setDate($these->getDateSoutenance()->format("d/m/Y"));

@@ -543,7 +543,7 @@ class TheseService extends BaseService implements ListenerAggregateInterface
        /** associée */
        $pdcData->setAssocie(false);
        /** @var Acteur $directeur */
        foreach ($directeurs as $directeur) {
        foreach (array_merge($directeurs, $codirecteurs) as $directeur) {
            if (!$directeur->getEtablissement()) {
                throw new RuntimeException("Anomalie: le directeur de thèse '{$directeur}' n'a pas d'établissement.");
            }
@@ -554,6 +554,7 @@ class TheseService extends BaseService implements ListenerAggregateInterface
            }
        }


        $acteursEnCouverture = array_merge($rapporteurs, $directeurs, $codirecteurs, $president, $membres);
        usort($acteursEnCouverture, Acteur::getComparisonFunction());
        $acteursEnCouverture = array_unique($acteursEnCouverture);