Commit 26550abd authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Correction bug en cas de nouvel intervenant/nouveau statut

le source_code est renseigné, car il doit être non null sinon la synchro plante
parent 358f0378
Loading
Loading
Loading
Loading
−1
Changes for module/Application/src/Application/Controller/IntervenantController.php: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -310,7 +310,6 @@ class IntervenantController extends AbstractController
        if ($actionDetail == 'dupliquer') {
            $intervenant = $intervenant->dupliquer();
            $intervenant->setSource($this->getServiceSource()->getOse());
            $intervenant->setSourceCode(null);
            $intervenant->setStatut($this->getServiceStatutIntervenant()->getAutres());
        }

+1
Changes for module/Application/src/Application/Service/IntervenantService.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -385,6 +385,7 @@ class IntervenantService extends AbstractEntityService
        $intervenant->setAnnee($this->getServiceContext()->getAnnee());
        $intervenant->setSource($this->getServiceSource()->getOse());
        $intervenant->setCode(uniqid('OSE'));
        $intervenant->setSourceCode($intervenant->getCode());

        return $intervenant;
    }
+1 −1
Changes for module/Application/src/Application/View/Helper/Intervenant/IntervenantViewHelper.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -157,7 +157,7 @@ class IntervenantViewHelper extends AbstractHtmlElement
                            </a>
                        </li>
                    <?php endforeach; ?>
                    <?php if ($canAddIntervenant): ?>
                    <?php if ($canAddIntervenant && $intervenant->getId()): ?>
                        <li class="ajout-intervenant">
                            <a href="<?= $this->getView()->url('intervenant/dupliquer', ['intervenant' => $intervenant->getId()]); ?>"
                               title="Ajout d'un nouveau statut à l'intervenant"><span