From 963b9423af6481a62321dca20679938a01289780 Mon Sep 17 00:00:00 2001 From: Jaap Eldering Date: Sat, 28 Oct 2023 16:06:37 +0200 Subject: [PATCH] Fix my last fix: check for empty expected results earlier Locally approved by Mart. --- webapp/templates/jury/submission.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/templates/jury/submission.html.twig b/webapp/templates/jury/submission.html.twig index 7aa84f7e91..97647e9779 100644 --- a/webapp/templates/jury/submission.html.twig +++ b/webapp/templates/jury/submission.html.twig @@ -42,8 +42,8 @@ {% endif %} - {% if selectedJudging is not null and selectedJudging.result is not empty %} - {% if submission.expectedResults and selectedJudging.result|upper not in submission.expectedResults %} + {% if selectedJudging is not null and selectedJudging.result is not empty and submission.expectedResults %} + {% if selectedJudging.result|upper not in submission.expectedResults %}
Actual result {{ selectedJudging.result | printValidJuryResult }} does NOT match expected result(s): {% for expectedResult in submission.expectedResults %}