浏览代码

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();
             $em->flush();
             $this->addFlash('success', 'Le commentaire a été posté');
             $this->addFlash('success', 'Le commentaire a été posté');
+            return $this->redirectToRoute('videotheque_voirfilm', array('id' => $film->getId()));
 
 
         }
         }
         $commentaires = $repoComment->findBy(array('film'=>$film));
         $commentaires = $repoComment->findBy(array('film'=>$film));