Merge branch 'MDL-55715_m33v1' of https://github.com/sbourget/moodle
This commit is contained in:
+1
-1
@@ -3034,7 +3034,7 @@ function calendar_add_icalendar_event($event, $courseid, $subscriptionid, $timez
|
||||
$eventrecord->courseid = $sub->courseid;
|
||||
$eventrecord->eventtype = $sub->eventtype;
|
||||
|
||||
if ($updaterecord = $DB->get_record('event', array('uuid' => $eventrecord->uuid))) {
|
||||
if ($updaterecord = $DB->get_record('event', array('uuid' => $eventrecord->uuid, 'subscriptionid' => $eventrecord->subscriptionid))) {
|
||||
$eventrecord->id = $updaterecord->id;
|
||||
$return = CALENDAR_IMPORT_EVENT_UPDATED; // Update.
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user