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

Candidat HDR : généralisation de l'utilisation du nom patronymique dans l'affichage du nom complet.

parent 5b6da88f
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
Journal des modifications
=========================

11.0.1
------
- Candidat HDR : généralisation de l'utilisation du nom patronymique dans l'affichage du nom complet.

11.0.0
------
- Module Admission v2.
+1 −1
Original line number Diff line number Diff line
@@ -495,7 +495,7 @@ class ApplicationNavigationFactory extends NavigationFactory
                $newPage['order'] = $newPage['order'] + $i;
            }
            // label
            $newPage['label'] = Util::truncatedString($hdr->getCandidat()->getIndividu()->getNomComplet(), 30);
            $newPage['label'] = Util::truncatedString((string)$hdr->getCandidat(), 30);
            // injection du paramètre de route 'hdr' dans la page et ses filles
            $this->setParamInPage($newPage, 'hdr', $hdr->getId());

+1 −7
Original line number Diff line number Diff line
@@ -40,7 +40,6 @@ class Candidat implements
     */
    private $individu;


    /**
     * @var Etablissement|null
     */
@@ -64,14 +63,9 @@ class Candidat implements
        $this->hdrs = new ArrayCollection();
    }

    /**
     * Retourne la représentation littérale de cet objet.
     *
     * @return string
     */
    public function __toString()
    {
        return $this->getIndividu()->__toString();
        return $this->getIndividu()->getNomCompletFormatter()->avecNomPatronymique()->f();
    }
    
    /**
+1 −1
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ class HDRService extends BaseService
            $pdcData->setEtablissement($hdr->getEtablissement()->getStructure()->getLibelle());
        }
        if ($hdr->getCandidat()) {
            $pdcData->setCandidat(mb_strtoupper($hdr->getCandidat()->getIndividu()->getNomComplet()));
            $pdcData->setCandidat(mb_strtoupper((string)$hdr->getCandidat()));
        }
        if ($proposition->getDate()) $pdcData->setDate($proposition->getDate()->format('d/m/Y à H:i'));
        
+1 −1
Original line number Diff line number Diff line
@@ -107,7 +107,7 @@ $canAddHDR = $this->isAllowed(Privileges::getResourceId(HDRPrivileges::HDR_MODIF
        <?php /** @var HDR $hdr */
        foreach ($hdrs as $hdr): ?>
            <tr>
                <td><?php echo $hdr->getCandidat()->getIndividu()->getNomComplet() ?></td>
                <td><?php echo $hdr->getCandidat() ?></td>
                <td>
                    <?php echo $this->structure($hdr->getEtablissement(), false); ?>
                </td>
Loading