MDL-47494 gapselect: Fix export of combined feedback.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 5 Dec 2011 12:50:24 +0000 (12:50 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 5 Dec 2011 12:50:24 +0000 (12:50 +0000)
question/type/gapselect/questiontype.php

index 308b613..589a393 100644 (file)
@@ -105,7 +105,9 @@ class qtype_gapselect extends qtype_gapselect_base {
         $output .= '    <shuffleanswers>' . $question->options->shuffleanswers .
                 "</shuffleanswers>\n";
 
-        $output .= $format->write_combined_feedback($question->options);
+        $output .= $format->write_combined_feedback($question->options,
+                                                    $question->id,
+                                                    $question->contextid);
 
         foreach ($question->options->answers as $answer) {
             $output .= "    <selectoption>\n";