From b6ec59fbe8b95da56e2cef514e708d4abedfd93d Mon Sep 17 00:00:00 2001 From: Tobias Werth Date: Sat, 2 Nov 2024 11:26:59 +0100 Subject: [PATCH] Warn when additional test cases have been added. We already had a warning when testcases have been re-ordered or removed, but didn't catch the case where additional cases have been added to the end. Fixes #2765. --- webapp/src/Controller/Jury/SubmissionController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webapp/src/Controller/Jury/SubmissionController.php b/webapp/src/Controller/Jury/SubmissionController.php index d0f9c473e5..f6fba7f8d3 100644 --- a/webapp/src/Controller/Jury/SubmissionController.php +++ b/webapp/src/Controller/Jury/SubmissionController.php @@ -378,6 +378,9 @@ public function viewAction( ->getScalarResult(); $cnt = 0; + if (count($judgingRunTestcaseIdsInOrder) !== count($runResults)) { + $sameTestcaseIds = false; + } foreach ($runResults as $runResult) { /** @var Testcase $testcase */ $testcase = $runResult[0];