diff --git a/server/planning/archive.py b/server/planning/archive.py index bd0ec914d..7d0ef5373 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 not translated_value.get("headline") and translated_value.get("name") and "headline" in fields_to_override: + updates["headline"] = translated_value["name"] + updates.update({key: val for key, val in translated_value.items() if key in fields_to_override}) if len(updates):