mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Fix for bug 4358:
No "Quiz closes" event was created for quizzes which ONLY had a closing date
This commit is contained in:
parent
d0eafce594
commit
001996c2f2
1 changed files with 1 additions and 0 deletions
|
@ -102,6 +102,7 @@ function quiz_add_instance($quiz) {
|
|||
$event->timestart = $quiz->timeclose;
|
||||
$event->eventtype = 'close';
|
||||
$event->timeduration = 0;
|
||||
add_event($event);
|
||||
}
|
||||
|
||||
return $quiz->id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue