From b25486fc72061f8e00bcda431131ecb00d9d7124 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 20 Mar 2007 14:06:56 +0000 Subject: [PATCH] Matching qestion type was failing to correctly determine wheterh the student had changed their answer. --- question/type/match/questiontype.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/question/type/match/questiontype.php b/question/type/match/questiontype.php index 959901d21a..43b71c1bcb 100644 --- a/question/type/match/questiontype.php +++ b/question/type/match/questiontype.php @@ -368,6 +368,15 @@ class question_match_qtype extends default_questiontype { return true; } + function compare_responses($question, $state, $teststate) { + foreach ($state->responses as $i=>$sr){ + if($state->responses[$i] != $teststate->responses[$i]){ + return false; + } + } + return true; + } + // ULPGC ecastro for stats report function get_all_responses($question, $state) { $answers = array(); -- 2.39.5