mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-62959 calendar: fix event data mapping for group id
This commit is contained in:
parent
4ce642e8ba
commit
8cc79b1c87
@ -109,6 +109,9 @@ class create_update_form_mapper implements create_update_form_mapper_interface {
|
||||
} else {
|
||||
$properties->courseid = $data->courseid;
|
||||
}
|
||||
if (empty($properties->groupid)) {
|
||||
$properties->groupid = 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Decode the form fields back into valid event property.
|
||||
|
Loading…
x
Reference in New Issue
Block a user