From d14bb7b5eedd31b8eeac771ba7ac92fabecbe676 Mon Sep 17 00:00:00 2001 From: Tobias Werth Date: Sat, 2 Sep 2023 16:53:54 +0200 Subject: [PATCH] Fix requesting of full judging output. (#2138) Requesting the full judging output is a `debug_info` judge task type which does not have a run config set. See #2031 where the code in question was introduced to display historical time limits. --- webapp/src/Controller/Jury/SubmissionController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/src/Controller/Jury/SubmissionController.php b/webapp/src/Controller/Jury/SubmissionController.php index b99110d434..83cebaef3c 100644 --- a/webapp/src/Controller/Jury/SubmissionController.php +++ b/webapp/src/Controller/Jury/SubmissionController.php @@ -230,10 +230,12 @@ public function viewAction( ->from(JudgeTask::class, 'jt', 'jt.jobid') ->select('jt') ->andWhere('jt.jobid IN (:jobIds)') + ->andWhere('jt.type = :type') ->setParameter( 'jobIds', array_map(static fn(Judging $judging) => $judging->getJudgingid(), $judgings) ) + ->setParameter('type', JudgeTaskType::JUDGING_RUN) ->getQuery() ->getResult(); $timelimits = array_map(function (JudgeTask $task) {