Changed 'in' to '==' to fix bug #258
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
% for choice_id, choice_description in choices:
|
||||
<label for="input_${id}_${choice_id}"
|
||||
% if input_type == 'radio' and choice_id in value:
|
||||
% if input_type == 'radio' and choice_id == value:
|
||||
<%
|
||||
if status == 'correct':
|
||||
correctness = 'correct'
|
||||
@@ -32,7 +32,7 @@
|
||||
% endif
|
||||
>
|
||||
<input type="${input_type}" name="input_${id}${name_array_suffix}" id="input_${id}_${choice_id}" value="${choice_id}"
|
||||
% if choice_id in value:
|
||||
% if choice_id == value:
|
||||
checked="true"
|
||||
% endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user