Преглед изворни кода

Correction du 'ok' qui lors de l'ajout d'un nouveau commentaire

François пре 5 година
родитељ
комит
dbf054d262
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/AppBundle/Controller/VideothequeController.php

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

@@ -167,6 +167,7 @@ class VideothequeController extends Controller
             }
             $em->flush();
             $this->addFlash('success', 'Le commentaire a été posté');
+            return $this->redirectToRoute('videotheque_voirfilm', array('id' => $film->getId()));
 
         }
         $commentaires = $repoComment->findBy(array('film'=>$film));