mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
Merge branch 'MDL-59382-int-fix-1' of github.com:ryanwyllie/moodle
This commit is contained in:
commit
7d9e0b066e
@ -834,9 +834,12 @@ class core_calendar_external extends external_api {
|
||||
|
||||
if (is_null($legacyevent)) {
|
||||
$legacyevent = new \calendar_event($properties);
|
||||
// Need to do this in order to initialise the description
|
||||
// property which then triggers the update function below
|
||||
// to set the appropriate default properties on the event.
|
||||
$properties = $legacyevent->properties(true);
|
||||
}
|
||||
|
||||
$properties = $legacyevent->properties(true);
|
||||
$legacyevent->update($properties);
|
||||
|
||||
$eventmapper = event_container::get_event_mapper();
|
||||
|
Loading…
x
Reference in New Issue
Block a user