Skip to content
Snippets Groups Projects
Commit edfeb7ad authored by permcu's avatar permcu
Browse files

Enable removal of optional recurrence for personal-events

Alternativly the frontend would need to always send the empty string.
parent 1ce5afa2
No related branches found
No related tags found
1 merge request!1694Resolve "Make timezone field optional in personal event mutations"
Pipeline #195644 failed
......@@ -110,3 +110,12 @@ class PersonalEventBatchPatchMutation(BaseBatchPatchMutation):
if info.context.user.has_perm("core.edit_personal_event_rule", obj):
return []
return cls._meta.permissions
@classmethod
def before_mutate(cls, root, info, input): # noqa
for event in input:
# Remove recurrences if none were received.
if not "recurrences" in event:
event["recurrences"] = ""
return input
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment