From 41aceeb54eb76783e85d57825c431306ee588d39 Mon Sep 17 00:00:00 2001 From: devketanpro Date: Wed, 31 Jan 2024 17:19:42 +0530 Subject: [PATCH] minor change --- server/planning/events/events_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/planning/events/events_template.py b/server/planning/events/events_template.py index 5a093e422..f860de5ff 100644 --- a/server/planning/events/events_template.py +++ b/server/planning/events/events_template.py @@ -119,7 +119,7 @@ def _get_event(_id): def _fill_event_template(self, doc): event = self._get_event(doc["based_on_event"]) - doc["data"].update(event.copy()) + doc.setdefault("data", {}).update(event.copy()) for field in DUPLICATE_EVENT_IGNORED_FIELDS: doc["data"].pop(field, None)