More steps towards the separation of questions from the quiz module.

This commit is contained in:
gustav_delius 2005-07-03 09:53:02 +00:00
parent 79714e2af3
commit a08e9552fa
5 changed files with 200 additions and 124 deletions

View file

@ -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);