From c7d75292f0fbdc0cfe46c9a5389a7ca67d1cc99a Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Mon, 13 Mar 2017 16:21:35 +0800 Subject: [PATCH] MDL-58240 mod_assign: Only use due for assign override event types Part of MDL-55611 epic. --- mod/assign/lib.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mod/assign/lib.php b/mod/assign/lib.php index e89ba2438dc..57ac40853fd 100644 --- a/mod/assign/lib.php +++ b/mod/assign/lib.php @@ -264,7 +264,7 @@ function assign_update_events($assign, $override = null) { $event->timeduration = 0; $event->timesort = $event->timestart + $event->timeduration; $event->visible = instance_is_visible('assign', $assigninstance); - $event->eventtype = ASSIGN_EVENT_TYPE_OPEN; + $event->eventtype = ASSIGN_EVENT_TYPE_DUE; // Determine the event name and priority. if ($groupid) { @@ -300,8 +300,6 @@ function assign_update_events($assign, $override = null) { unset($event->id); } $event->name = $eventname.' ('.get_string('duedate', 'assign').')'; - $event->timestart = $duedate; - $event->eventtype = ASSIGN_EVENT_TYPE_CLOSE; \core_calendar\event::create($event); } }