Commit 5a0cefc4 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Fix : Bouton retour dans le formulaire d'ajout de rôle dans l'affectation...

Fix : Bouton retour dans le formulaire d'ajout de rôle dans l'affectation d'une personne à une organisation
parent 437665b1
Loading
Loading
Loading
Loading
+33 −631

File changed.

Preview size limit exceeded, changes collapsed.

+0 −2
Original line number Diff line number Diff line
@@ -1502,8 +1502,6 @@ class PersonService implements UseOscarConfigurationService, UseEntityManager, U
                ->setDateEnd($dateEnd);

            $this->getEntityManager()->flush($op);
            $this->getEntityManager()->refresh($organization);
            $this->getEntityManager()->refresh($person);

            if ($role->isPrincipal()) {
                /** @var ActivityOrganization $oa */
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ if( $exception && $exception instanceof Oscar\Exception\OscarException ): ?>
    <p>Si ce message ne vous aide pas, contactez l'administrateur en lui indiquant ce message.</p>
<?php else: ?>
    <pre>
        <h3 style="margin: 0"><small>Erreur générique : <strong><?= get_class($exception) ?></strong></small></h3>
        <h3 style="margin: 0"><small>Erreur : <strong><?= get_class($exception) ?></strong></small></h3>
<?php echo "EXCEPTION : $exception" ?>
> <strong><?= $exception->getMessage() ?></strong>
---
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@
        <?= $this->formControlGroup($form->get('dateEnd')); ?>
        <?= $this->formHidden($form->get('secure')); ?>
        <nav class="btn-group">
            <a class="btn btn-default button-back"  href="javascript:history.back()">
            <a class="btn btn-default button-back"  href="<?= backlink ?>">
                <i class="icon-angle-left"></i>
                Retour
            </a>