Skip to content

Commit 5da9cb0

Browse files
committed
Revert "Select shortname from current contestproblem"
This reverts commit 0219d8e.
1 parent 4e189d7 commit 5da9cb0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

webapp/src/Controller/Team/MiscController.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,10 @@ public function homeAction(Request $request): Response
104104
$clarifications = $this->em->createQueryBuilder()
105105
->from(Clarification::class, 'c')
106106
->leftJoin('c.problem', 'p')
107-
->leftJoin('p.contest_problems', 'cp')
108107
->leftJoin('c.sender', 's')
109108
->leftJoin('c.recipient', 'r')
110-
->select('c', 'cp', 'p')
109+
->select('c', 'p')
111110
->andWhere('c.contest = :contest')
112-
->andWhere('cp.contest = :contest')
113111
->andWhere('c.sender IS NULL')
114112
->andWhere('c.recipient = :team OR c.recipient IS NULL')
115113
->setParameter('contest', $contest)
@@ -123,12 +121,10 @@ public function homeAction(Request $request): Response
123121
$clarificationRequests = $this->em->createQueryBuilder()
124122
->from(Clarification::class, 'c')
125123
->leftJoin('c.problem', 'p')
126-
->leftJoin('p.contest_problems', 'cp')
127124
->leftJoin('c.sender', 's')
128125
->leftJoin('c.recipient', 'r')
129-
->select('c', 'cp', 'p')
126+
->select('c', 'p')
130127
->andWhere('c.contest = :contest')
131-
->andWhere('cp.contest = :contest')
132128
->andWhere('c.sender = :team')
133129
->setParameter('contest', $contest)
134130
->setParameter('team', $team)

0 commit comments

Comments
 (0)