Skip to content

Commit 066f0e4

Browse files
cubercslmoesoha
andcommitted
fix: no clarfication on team dashboard
Co-authored-by: Soha Jin <soha@jin.sh>
1 parent 3002fb3 commit 066f0e4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

webapp/src/Controller/Team/MiscController.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ public function homeAction(Request $request): Response
103103
->leftJoin('c.sender', 's')
104104
->leftJoin('c.recipient', 'r')
105105
->select('c', 'cp', 'p')
106-
->andWhere('c.contest = :contest')
107-
->andWhere('cp.contest = :contest')
106+
->andWhere('c.contest = :contest OR cp.contest = :contest')
108107
->andWhere('c.sender IS NULL')
109108
->andWhere('c.recipient = :team OR c.recipient IS NULL')
110109
->setParameter('contest', $contest)
@@ -122,8 +121,7 @@ public function homeAction(Request $request): Response
122121
->leftJoin('c.sender', 's')
123122
->leftJoin('c.recipient', 'r')
124123
->select('c', 'cp', 'p')
125-
->andWhere('c.contest = :contest')
126-
->andWhere('cp.contest = :contest')
124+
->andWhere('c.contest = :contest OR cp.contest = :contest')
127125
->andWhere('c.sender = :team')
128126
->setParameter('contest', $contest)
129127
->setParameter('team', $team)

0 commit comments

Comments
 (0)