Skip to content

Commit 4e189d7

Browse files
tossy310cubercsl
authored andcommitted
Fix displayed messages when importing a problem from zip
Previous attempts 019ec2f and a6640d5 fixed most cases reported in an issue #1708, but there's still a case where a wrong error message is shown. This fixes it. (cherry picked from commit 07e3235)
1 parent a609bfd commit 4e189d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/Controller/Jury/ProblemController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ public function editAction(Request $request, int $probId): Response
962962
)) {
963963
$this->dj->auditlog('problem', $problem->getProbid(), 'upload zip', $clientName);
964964
} else {
965-
$this->addFlash('danger', implode("\n", $messages));
965+
$this->postMessages($messages);
966966
return $this->redirectToRoute('jury_problem', ['probId' => $problem->getProbid()]);
967967
}
968968
} catch (Exception $e) {

0 commit comments

Comments
 (0)