Permalink
Browse files

Merge branch 'MDL-60176-master' of git://github.com/andrewnicols/moodle

  • Loading branch information...
dmonllao committed Oct 16, 2017
2 parents 75820fb + 70569da commit 7152d2ff7a2f68d87c9395be7b4b5b448ee86e68
Showing with 3 additions and 4 deletions.
  1. +3 −4 calendar/classes/external/calendar_event_exporter.php
@@ -198,12 +198,11 @@ protected static function define_related() {
* @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();
}
/**

0 comments on commit 7152d2f

Please sign in to comment.