From 066f0e41f576bf94d7a9fa3ba3291fe7decb1fb6 Mon Sep 17 00:00:00 2001 From: cubercsl <2014cais01@gmail.com> Date: Sun, 16 Jun 2024 11:20:51 +0800 Subject: [PATCH] fix: no clarfication on team dashboard Co-authored-by: Soha Jin --- webapp/src/Controller/Team/MiscController.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/webapp/src/Controller/Team/MiscController.php b/webapp/src/Controller/Team/MiscController.php index 00b2b1e0b1..c3c8290929 100644 --- a/webapp/src/Controller/Team/MiscController.php +++ b/webapp/src/Controller/Team/MiscController.php @@ -103,8 +103,7 @@ public function homeAction(Request $request): Response ->leftJoin('c.sender', 's') ->leftJoin('c.recipient', 'r') ->select('c', 'cp', 'p') - ->andWhere('c.contest = :contest') - ->andWhere('cp.contest = :contest') + ->andWhere('c.contest = :contest OR cp.contest = :contest') ->andWhere('c.sender IS NULL') ->andWhere('c.recipient = :team OR c.recipient IS NULL') ->setParameter('contest', $contest) @@ -122,8 +121,7 @@ public function homeAction(Request $request): Response ->leftJoin('c.sender', 's') ->leftJoin('c.recipient', 'r') ->select('c', 'cp', 'p') - ->andWhere('c.contest = :contest') - ->andWhere('cp.contest = :contest') + ->andWhere('c.contest = :contest OR cp.contest = :contest') ->andWhere('c.sender = :team') ->setParameter('contest', $contest) ->setParameter('team', $team)