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)