Bug #5506: Fix for calculated questions where each one builds on the last. Merged from MOODLE_16_STABLE.
This commit is contained in:
@@ -323,6 +323,13 @@
|
||||
|
||||
// Process these responses ...
|
||||
question_process_responses($questions[$i], $states[$i], $action, $quiz, $attempt);
|
||||
|
||||
// Fix for Bug #5506: When each attempt is built on the last one,
|
||||
// preserve the options from any previous attempt.
|
||||
if ( isset($laststate->options) ) {
|
||||
$states[$i]->options = $laststate->options;
|
||||
}
|
||||
|
||||
// ... and save the new states
|
||||
save_question_session($questions[$i], $states[$i]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user