MDL-59382 calendar: fix course id for site event
This commit is contained in:
@@ -89,7 +89,7 @@ class create_update_form_mapper implements create_update_form_mapper_interface {
|
||||
}
|
||||
|
||||
// Default course id if none is set.
|
||||
if (!isset($data->courseid)) {
|
||||
if (!isset($properties->courseid)) {
|
||||
$properties->courseid = 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -836,6 +836,7 @@ class core_calendar_external extends external_api {
|
||||
$legacyevent = new \calendar_event($properties);
|
||||
}
|
||||
|
||||
$properties = $legacyevent->properties(true);
|
||||
$legacyevent->update($properties);
|
||||
|
||||
$eventmapper = event_container::get_event_mapper();
|
||||
|
||||
Reference in New Issue
Block a user