From 34bd3b3e736ee13f25dae05a18fa9492882abcd2 Mon Sep 17 00:00:00 2001
From: Gauthier
Date: Tue, 27 Mar 2018 09:57:10 +0200
Subject: [PATCH] On ne peut pas modifier l'id dans l'URL par un ID inexistant
---
src/Controller/RollAndPlay/IndexController.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Controller/RollAndPlay/IndexController.php b/src/Controller/RollAndPlay/IndexController.php
index ff5c768..e0fd8e0 100644
--- a/src/Controller/RollAndPlay/IndexController.php
+++ b/src/Controller/RollAndPlay/IndexController.php
@@ -63,7 +63,7 @@ public function partie($nom, $id, Request $request , Request $request2) {
$partie = $this->getDoctrine()
->getRepository(Parties::class)
- ->findBy(array( 'nom' => $nom, 'id' => $id ));
+ ->findBy(array( 'id' => $id ));
if (!$partie) :
return $this->redirectToRoute('index',[],Response::HTTP_MOVED_PERMANENTLY);