Browse Source

Redirect sur la fiche film après la création

François 6 years ago
parent
commit
d5c324c22a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/AppBundle/Controller/VideothequeController.php

+ 1 - 1
src/AppBundle/Controller/VideothequeController.php

@@ -51,7 +51,7 @@ class VideothequeController extends Controller
 			$em->persist($film);
 			$em->flush();
 			$this->addFlash('success', 'Le film a été ajouté');
-			return $this->redirectToRoute('videotheque_liste');
+			return $this->redirectToRoute('videotheque_voirfilm', array('id'=>$film->getId()));
 		}
 
 		return $this->render('@App/videotheque/ajouter.html.twig', array(