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

Correction bug action sur ParcoursdeFormationFormation

parent d852da38
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -163,7 +163,6 @@ class ParcoursDeFormationController extends AbstractActionController
        $formation = $this->getParcoursDeFormationService()->getRequestedParcoursDeFormationFormation($this, 'formation');

        $this->getParcoursDeFormationService()->removeFormation($formation);
        $this->getParcoursDeFormationService()->update($parcours);

        return $this->redirect()->toRoute('parcours-de-formation/modifier', ['parcours-de-formation' => $parcours->getId()], [], true);
    }
+1 −1
Original line number Diff line number Diff line
@@ -256,7 +256,7 @@ class ParcoursDeFormationService {
        $qb = $this->getEntityManager()->getRepository(ParcoursDeFormationFormation::class)->createQueryBuilder('pdff')
            ->addSelect('parcours')->join('pdff.parcours', 'parcours')
            ->addSelect('formation')->join('pdff.formation', 'formation')
            ->addSelect('groupe')->join('formation.groupe', 'groupe')
            ->addSelect('groupe')->leftjoin('formation.groupe', 'groupe')
            ->andWhere('pdff.id = :id')
            ->setParameter('id', $id)
        ;
+6 −5
Original line number Diff line number Diff line
@@ -192,8 +192,9 @@ usort($formationArray,
                            <span class="icon monter" style="color:white;"></span>
                            <span class="icon descendre" style="color:white;"></span>
                        <?php endif; ?>

                        <?php /** @see \Application\Controller\ParcoursDeFormationController::retirerFormationAction() */ ?>
                            <a href="<?php echo $this->url('parcours-de-formation/retirer-formation', ['parcours-de-formation' => $parcours->getId(), 'formation' => $formation->getId()], [], true); ?>"
                        <a href="<?php echo $this->url('parcours-de-formation/retirer-formation', ['parcours-de-formation' => $parcours->getId(), 'formation' => $formationP->getId()], [], true); ?>"
                        >
                            <span class="icon detruire" data-toogle="tooltip" data-html="true" title="Retirer la formation"></span>
                        </a>