From 05d7440e19529b70f8f65a6a0300b1e98c774a84 Mon Sep 17 00:00:00 2001 From: Rossiani Wijaya Date: Thu, 26 Jul 2012 14:24:44 +0800 Subject: [PATCH] MDL-34255 group calendar events: fixed adding group calendar event for students --- calendar/event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/event.php b/calendar/event.php index 130e682351f..dbc0c32b370 100644 --- a/calendar/event.php +++ b/calendar/event.php @@ -123,10 +123,10 @@ if ($eventid !== 0) { $event = new stdClass(); $event->action = $action; $event->course = $courseid; + $event->courseid = $courseid; $event->timeduration = 0; if ($formoptions->eventtypes->courses) { if (!$issite) { - $event->courseid = $courseid; $event->eventtype = 'course'; } else { unset($formoptions->eventtypes->courses);