From ca50af72a1a52e4fadf10e221fa33cb18e7d0259 Mon Sep 17 00:00:00 2001 From: afornerot Date: Wed, 8 Jan 2025 10:31:40 +0100 Subject: [PATCH] correctif mastersubmit tailly --- src/ninebadge-1.0/src/Controller/TallydayController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ninebadge-1.0/src/Controller/TallydayController.php b/src/ninebadge-1.0/src/Controller/TallydayController.php index 43b1701..c42363a 100755 --- a/src/ninebadge-1.0/src/Controller/TallydayController.php +++ b/src/ninebadge-1.0/src/Controller/TallydayController.php @@ -278,7 +278,7 @@ class TallydayController extends AbstractController if(!$user) return $this->redirectToRoute("app_tallyday_masterlist"); // Pas normal = on ne peut créer une donnée sur une journée déjà validé par master - $isvalidemaster= $em->getRepository($this->entity)->findOneBy(["user"=>$this->getUser(),"dateof"=>$dateof,"validatemaster"=>true]); + $isvalidemaster= $em->getRepository($this->entity)->findOneBy(["user"=>$user,"dateof"=>$dateof,"validatemaster"=>true]); if($isvalidemaster) return $this->redirectToRoute("app_tallyday_masterlist"); return $this->submit($user,$dateof,"master",$request);