Fix crash in name rendering (PRETIXEU-8GS)

This commit is contained in:
Raphael Michel
2023-06-03 21:35:45 +02:00
parent 170dcf93e7
commit 0d93f7f52f

View File

@@ -3256,7 +3256,7 @@ def concatenation_for_salutation(d):
def get_name_parts_localized(name_parts, key):
value = name_parts.get(key, "")
if key == "salutation":
if key == "salutation" and value:
return pgettext_lazy("person_name_salutation", value)
return value