MDL-47494 ddmarker: NOBUG fix question statistics in quiz statistics report

This commit is contained in:
Jamie Pratt
2011-11-23 12:31:24 +07:00
parent 5e0f5f52de
commit 14230fd6dc
+4 -4
View File
@@ -304,11 +304,11 @@ class qtype_ddmarker_question extends qtype_ddtoimage_question_base {
foreach ($this->places as $placeno => $place) {
if (isset($hits[$placeno])) {
$shuffledchoiceno = $this->get_right_choice_for($placeno);
$choiceno = $this->get_selected_choice(1, $shuffledchoiceno);
$choice = $this->get_selected_choice(1, $shuffledchoiceno);
$parts[$placeno] = new question_classified_response(
$choiceno,
$this->choices[$choiceno]->summarise(),
1 / count($this->places));
$choice->no,
$choice->summarise(),
1 / count($this->places));
} else {
$parts[$placeno] = question_classified_response::no_response();
}