File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
webapp/src/Controller/Team Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,7 @@ public function homeAction(Request $request): Response
103
103
->leftJoin ('c.sender ' , 's ' )
104
104
->leftJoin ('c.recipient ' , 'r ' )
105
105
->select ('c ' , 'cp ' , 'p ' )
106
- ->andWhere ('c.contest = :contest ' )
107
- ->andWhere ('cp.contest = :contest ' )
106
+ ->andWhere ('c.contest = :contest OR cp.contest = :contest ' )
108
107
->andWhere ('c.sender IS NULL ' )
109
108
->andWhere ('c.recipient = :team OR c.recipient IS NULL ' )
110
109
->setParameter ('contest ' , $ contest )
@@ -122,8 +121,7 @@ public function homeAction(Request $request): Response
122
121
->leftJoin ('c.sender ' , 's ' )
123
122
->leftJoin ('c.recipient ' , 'r ' )
124
123
->select ('c ' , 'cp ' , 'p ' )
125
- ->andWhere ('c.contest = :contest ' )
126
- ->andWhere ('cp.contest = :contest ' )
124
+ ->andWhere ('c.contest = :contest OR cp.contest = :contest ' )
127
125
->andWhere ('c.sender = :team ' )
128
126
->setParameter ('contest ' , $ contest )
129
127
->setParameter ('team ' , $ team )
You can’t perform that action at this time.
0 commit comments