Matching qestion type was failing to correctly determine wheterh the student had changed their answer.

This commit is contained in:
tjhunt
2007-03-20 14:06:56 +00:00
parent 9e20fbc2f4
commit b25486fc72
+9
View File
@@ -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();