Skip to content

Commit

Permalink
matching qtype: MDL-17496 With filterall and multilang, the contents …
Browse files Browse the repository at this point in the history
…of the dropdowns was not being properly filtered

This was caused becuse the solution to MDL-9005 was not quite right.
  • Loading branch information
tjhunt committed Dec 12, 2008
1 parent 75d7097 commit 3645f5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions question/type/match/questiontype.php
Expand Up @@ -173,7 +173,7 @@ function restore_session_and_responses(&$question, &$state) {
// 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);
Expand Down Expand Up @@ -223,7 +223,7 @@ function print_question_formulation_and_controls(&$question, &$state, $cmoptions

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));
}
}

Expand Down

0 comments on commit 3645f5b

Please sign in to comment.