Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
On ne peut pas modifier l'id dans l'URL par un ID inexistant
Browse files Browse the repository at this point in the history
  • Loading branch information
GauthierBosson committed Mar 27, 2018
1 parent 6ab4490 commit 34bd3b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/RollAndPlay/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 34bd3b3

Please sign in to comment.