From 2ce756ff2399c7313516ea474f050804fa1a86df Mon Sep 17 00:00:00 2001 From: devketanpro Date: Wed, 8 Nov 2023 12:44:35 +0530 Subject: [PATCH] update headline mapping assignment article [SDESK-7061] --- server/planning/archive.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/planning/archive.py b/server/planning/archive.py index bd0ec914d..10b577641 100644 --- a/server/planning/archive.py +++ b/server/planning/archive.py @@ -42,6 +42,10 @@ def create_item_from_template(doc, extra_fields_to_override=None, translations=N translated_value = { entry["field"]: entry["value"] for entry in translations or [] if entry["language"] == doc.get("language") } + + if translated_value.get("name") and "headline" in fields_to_override: + updates["headline"] = translated_value.get("name") + updates.update({key: val for key, val in translated_value.items() if key in fields_to_override}) if len(updates):