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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user