Skip to content

Commit

Permalink
Fix filtering on affiliations.
Browse files Browse the repository at this point in the history
Previously, we were printing the external id here but filtering on the
internal one.

Fixes DOMjudge#2706
  • Loading branch information
meisterT committed Sep 29, 2024
1 parent bba7850 commit 6d65290
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion webapp/templates/jury/partials/submission_list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,17 @@
{%- set link = path('jury_submission', {submitId: submission.submitid}) %}
{%- endif %}

{% if submission.team.affiliation %}
{% set affilid = submission.team.affiliation.affilid %}
{% else %}
{% set affilid = '' %}
{% endif %}

<tr class="{% if not submission.valid %}ignore{% endif %}"
data-problem-id="{{ submission.problem.probid }}"
data-team-id="{{ submission.team.teamid }}"
data-category-id="{{ submission.team.category.categoryid }}"
data-affiliation-id="{{ submission.team.affiliationId }}"
data-affiliation-id="{{ affilid }}"
data-language-id="{{ submission.language.langid }}"
data-submission-id="{{ submission.submitid }}"
data-result="{{ submission | printValidJurySubmissionResult(false) }}">
Expand Down

0 comments on commit 6d65290

Please sign in to comment.