matching qtype: MDL-17496 With filterall and multilang, the contents of the dropdowns was not being properly filtered
This was caused becuse the solution to MDL-9005 was not quite right.
This commit is contained in:
@@ -173,7 +173,7 @@ class question_match_qtype extends default_questiontype {
|
||||
// answers per question, each with different marks and feedback.
|
||||
$answer = new stdClass();
|
||||
$answer->id = $subquestion->code;
|
||||
$answer->answer = format_string($subquestion->answertext);
|
||||
$answer->answer = $subquestion->answertext;
|
||||
$answer->fraction = 1.0;
|
||||
$state->options->subquestions[$key]->options
|
||||
->answers[$subquestion->code] = clone($answer);
|
||||
@@ -223,7 +223,7 @@ class question_match_qtype extends default_questiontype {
|
||||
|
||||
foreach ($subquestions as $subquestion) {
|
||||
foreach ($subquestion->options->answers as $ans) {
|
||||
$answers[$ans->id] = $ans->answer;
|
||||
$answers[$ans->id] = strip_tags(format_string($ans->answer, false));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user