MDL-60176 calendar: Show all activity events are course events

This commit is contained in:
Andrew Nicols
2017-10-08 21:05:59 +08:00
parent d8e9a23c48
commit 70569dadcd
+3 -4
View File
@@ -177,11 +177,10 @@ class calendar_event_exporter extends event_exporter_base {
* @return string
*/
public function get_calendar_event_type() {
$type = $this->event->get_type();
if ($type == 'open' || $type == 'close') {
$type = 'course';
if ($this->event->get_course_module()) {
return 'course';
}
return $type;
return $this->event->get_type();
}
}