mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
questionlib: clarify a comment.
This commit is contained in:
parent
12e57b92ea
commit
47ceac47e4
1 changed files with 2 additions and 4 deletions
|
@ -955,11 +955,9 @@ function question_load_states(&$questions, &$states, $cmoptions, $attempt, $last
|
|||
$states[$qid]->last_graded = clone($states[$qid]);
|
||||
}
|
||||
} else {
|
||||
// If the new attempt is to be based on a previous attempt get it and clean things
|
||||
// Having lastattemptid filled implies that (should we double check?):
|
||||
// $attempt->attempt > 1 and $cmoptions->attemptonlast and !$attempt->preview
|
||||
if ($lastattemptid) {
|
||||
// find the responses from the previous attempt and save them to the new session
|
||||
// If the new attempt is to be based on this previous attempt.
|
||||
// Find the responses from the previous attempt and save them to the new session
|
||||
|
||||
// Load the last graded state for the question
|
||||
$statefields = 'n.questionid as question, s.*, n.sumpenalty';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue