mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-67027 calendar: fix event update form validation.
This commit is contained in:
parent
9f997f9bd7
commit
c0c9cf32f2
@ -70,11 +70,13 @@ class create_update_form_mapper implements create_update_form_mapper_interface {
|
||||
'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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user