From: tjhunt <tjhunt> Date: Tue, 20 Mar 2007 14:06:56 +0000 (+0000) Subject: Matching qestion type was failing to correctly determine wheterh the student had... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b25486fc72061f8e00bcda431131ecb00d9d7124;p=moodle.git Matching qestion type was failing to correctly determine wheterh the student had changed their answer. --- 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();