Skip to content

Commit

Permalink
Matching qestion type was failing to correctly determine wheterh the …
Browse files Browse the repository at this point in the history
…student had changed their answer.
  • Loading branch information
tjhunt committed Mar 20, 2007
1 parent 36244d8 commit 9000222
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions question/type/match/questiontype.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,15 @@ function grade_responses(&$question, &$state, $cmoptions) {
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();
Expand Down

0 comments on commit 9000222

Please sign in to comment.