mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
More steps towards the separation of questions from the quiz module.
This commit is contained in:
parent
79714e2af3
commit
a08e9552fa
5 changed files with 200 additions and 124 deletions
|
@ -1459,8 +1459,7 @@
|
|||
}
|
||||
|
||||
//Set the uniqueid field
|
||||
$attempt->uniqueid = $CFG->attemptuniqueid;
|
||||
set_config('attemptuniqueid', $CFG->attemptuniqueid + 1);
|
||||
$attempt->uniqueid = quiz_new_attempt_uniqueid();
|
||||
|
||||
//We have to recode the layout field (a list of questions id and pagebreaks)
|
||||
$attempt->layout = quiz_recode_layout($attempt->layout, $restore);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue