Skip to content

Commit 852a375

Browse files
eliasolveluca93
authored andcommitted
Don't check all language boxes when task is inheriting from contest in aws
1 parent 32a5301 commit 852a375

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cms/server/admin/templates/task.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ <h2 id="title_task_configuration" class="toggling_on">Task configuration</h2>
134134
<td>
135135
<span class="info" title="Programming languages that contestants can use to solve this task.
136136
If none are selected, all contest languages are allowed.
137-
Otherwise, only the selected languages (which must be a subset of contest languages) are allowed."></span>
137+
Otherwise, only the selected languages are allowed."></span>
138138
Allowed programming languages
139139
</td>
140140
<td class="wrapping-options">
141141
{% for lang in LANGUAGES %}
142-
<label><input type="checkbox" name="allowed_languages" value="{{ lang.name }}" {{ "checked" if task.allowed_languages is none or lang.name in (task.allowed_languages or []) else "" }}>{{ lang.name }}</label>
142+
<label><input type="checkbox" name="allowed_languages" value="{{ lang.name }}" {{ "checked" if task.allowed_languages is not none and lang.name in task.allowed_languages else "" }}>{{ lang.name }}</label>
143143
{% endfor %}
144144
</td>
145145
</tr>

0 commit comments

Comments
 (0)