Skip to content

Commit 07e3235

Browse files
tossy310nickygerritsen
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.
1 parent 7289e98 commit 07e3235

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
@@ -937,7 +937,7 @@ public function editAction(Request $request, int $probId): Response
937937
)) {
938938
$this->dj->auditlog('problem', $problem->getProbid(), 'upload zip', $clientName);
939939
} else {
940-
$this->addFlash('danger', implode("\n", $messages));
940+
$this->postMessages($messages);
941941
return $this->redirectToRoute('jury_problem', ['probId' => $problem->getProbid()]);
942942
}
943943
} catch (Exception $e) {

0 commit comments

Comments
 (0)