Commit d18a15c1 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Correction route avec ancien parametre

parent 1351302c
Loading
Loading
Loading
Loading
+1 −1
Changes for module/Formation/config/others/session.config.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ return [
                                'type'  => Segment::class,
                                'may_terminate' => true,
                                'options' => [
                                    'route'    => '/ajouter/:module',
                                    'route'    => '/ajouter/:formation',
                                    'defaults' => [
                                        'controller' => SessionController::class,
                                        'action'     => 'ajouter',
+1 −1
Changes for module/Formation/view/formation/formation/afficher.phtml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -136,7 +136,7 @@ usort($sessions, function(Session $a, Session $b) { return $a->getIndex() > $b->
    <div class="pull-right">
        <?php if ($canAjouterSession) : ?>
            <?php /** @see \Formation\Controller\SessionController::ajouterAction() */ ?>
            <a href="<?php echo $this->url('formation/session/ajouter', ['module' => $formation->getId()], [], true); ?>"
            <a href="<?php echo $this->url('formation/session/ajouter', ['formation' => $formation->getId()], [], true); ?>"
               class="btn btn-primary action ajax-modal" data-event="modification"
               title="Ajouter une session"
               data-toggle="tooltip" data-html="true">