mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
MDL-69253 mod_quiz: Fix timecreated is 0 when creating a quiz activity
This commit is contained in:
parent
07238ca511
commit
380534b0a1
@ -84,7 +84,7 @@ function quiz_add_instance($quiz) {
|
||||
$cmid = $quiz->coursemodule;
|
||||
|
||||
// Process the options from the form.
|
||||
$quiz->created = time();
|
||||
$quiz->timecreated = time();
|
||||
$result = quiz_process_options($quiz);
|
||||
if ($result && is_string($result)) {
|
||||
return $result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user