fix: Use contact name + date as case title fallback (v1.3.110)

This commit is contained in:
Christian 2026-01-05 16:44:18 +01:00
parent 1e45ec70bf
commit d99d542a24
2 changed files with 11 additions and 3 deletions

View File

@ -1 +1 @@
1.3.109
1.3.110

View File

@ -210,9 +210,17 @@ class OrderService:
if len(unique_descriptions) > 3:
case_title += "..."
# Hvis stadig ingen titel, brug fallback
# Hvis stadig ingen titel, byg en fra contact_name + dato
if not case_title or case_title.strip() == "":
case_title = "Arbejde"
if group.get('contact_name'):
# Brug contact navn og dato
date_str = group.get('worked_date', '').strftime('%d.%m.%Y') if group.get('worked_date') else ''
case_title = f"Support til {group['contact_name']}"
if date_str:
case_title += f" - {date_str}"
else:
# Sidste fallback hvis intet andet
case_title = "Support arbejde"
# Build description med case nummer prefix
if case_number: