mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
correct the setting the fixed flag in JMatch quizzes
This commit is contained in:
parent
e2850d158f
commit
97a313023d
@ -724,7 +724,7 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default {
|
||||
$str .= "D[$i] = new Array();\n";
|
||||
$str .= "D[$i][0] = '".$this->js_safe($item['text'][0]['#'], true)."';\n";
|
||||
$str .= "D[$i][1] = ".($i+1).";\n";
|
||||
$str .= "D[$i][2] = '".$this->int_value($item['fixed'][0]['#'])."';\n";
|
||||
$str .= "D[$i][2] = '".(empty($item['fixed'][0]['#']) ? 0 : 1)."';\n";
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user