Skip to content

Commit

Permalink
MDL-59383 core_calendar: proper handling of description on webservice
Browse files Browse the repository at this point in the history
  • Loading branch information
lameze committed Jul 12, 2017
1 parent f2e981e commit 8a5c06b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions calendar/externallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,7 @@ public static function get_calendar_event_by_id($eventid) {
// We need to get events asked for eventids.
$event = calendar_get_events_by_id([$eventid]);
$eventobj = calendar_event::load($eventid);
list($event[$eventid]->description, $event[$eventid]->format) = $eventobj->format_external_text();
$event[$eventid]->caneditevent = calendar_edit_event_allowed($eventobj);

return array('event' => $event[$eventid], 'warnings' => $warnings);
Expand Down

0 comments on commit 8a5c06b

Please sign in to comment.