Sfoglia il codice sorgente

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

François 5 anni fa
parent
commit
dbf054d262
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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));