Skip to content

Commit

Permalink
MDL-62959 calendar: fix event data mapping for group id
Browse files Browse the repository at this point in the history
  • Loading branch information
lameze authored and snake committed Jul 26, 2022
1 parent 4ce642e commit 8cc79b1
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -109,6 +109,9 @@ public function from_data_to_event_properties(\stdClass $data) {
} else {
$properties->courseid = $data->courseid;
}
if (empty($properties->groupid)) {
$properties->groupid = 0;
}
}

// Decode the form fields back into valid event property.
Expand Down

0 comments on commit 8cc79b1

Please sign in to comment.