mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +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
|
@ -1463,8 +1463,7 @@
|
|||
}
|
||||
|
||||
//Set the uniqueid field
|
||||
$attempt->uniqueid = $CFG->attemptuniqueid;
|
||||
set_config('attemptuniqueid', $CFG->attemptuniqueid + 1);
|
||||
$attempt->uniqueid = quiz_new_attempt_uniqueid();
|
||||
|
||||
//The structure is equal to the db, so insert the quiz_attempts
|
||||
$newid = insert_record ("quiz_attempts",$attempt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue