Skip to content

Commit

Permalink
Merge branch 'MDL-67027' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Oct 29, 2019
2 parents 7ddf5ab + c0c9cf3 commit 501c568
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,13 @@ public function from_legacy_event_to_data(\calendar_event $legacyevent) {
'format' => $data->format
];

// We don't want to return the context because it's not a
// form value and breaks the validation.
// Don't return context or subscription because they're not form values and break validation.
if (isset($data->context)) {
unset($data->context);
}
if (isset($data->subscription)) {
unset($data->subscription);
}

return $data;
}
Expand Down

0 comments on commit 501c568

Please sign in to comment.