소스 검색

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));