瀏覽代碼

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