MDL-15452 - Fix regressions introduced by my recent work on this bug and its children. Thanks to Paul Johnson for his testing.

This commit is contained in:
tjhunt
2008-07-11 13:04:09 +00:00
parent fb2ce31bfc
commit a0083206b8
+3 -2
View File
@@ -75,7 +75,7 @@
/// Add all questions that are on the submitted form
if ($submittedquestionids) {
$submittedquestionids = explode(',', $submittedquestionids);
$questionids = $questionids + $submittedquestionids;
$questionids = array_unique(array_merge($questionids, $submittedquestionids));
} else {
$submittedquestionids = array();
}
@@ -116,7 +116,8 @@
unset($responses->forcenewattempt);
/// Extract the responses. $actions will be an array indexed by the questions ids.
$actions = question_extract_responses($attemptobj->get_questions(), $responses, $event);
$actions = question_extract_responses($attemptobj->get_questions($questionids),
$responses, $event);
/// Process each question in turn
$success = true;