From a7b9f8457eeee76122f0bbb8028411351d741058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9l=C3=A8ne=20Meneuvrier?= Date: Wed, 27 Nov 2024 23:10:21 +0100 Subject: [PATCH] fix delete waiting suivi on file #3348 --- src/Controller/Back/SignalementFileController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Controller/Back/SignalementFileController.php b/src/Controller/Back/SignalementFileController.php index 34ab26c1a..06de0960b 100755 --- a/src/Controller/Back/SignalementFileController.php +++ b/src/Controller/Back/SignalementFileController.php @@ -129,7 +129,9 @@ public function fileWaitingSuiviSignalement( ->set('f.isWaitingSuivi', 'false') ->where('f.signalement = :signalement') ->andWhere('f.isWaitingSuivi = true') + ->andWhere('f.uploadedBy = :user') ->setParameter('signalement', $signalement) + ->setParameter('user', $this->getUser()) ->getQuery(); $update->execute();