fix: Use contact name + date as case title fallback (v1.3.110)
This commit is contained in:
parent
1e45ec70bf
commit
d99d542a24
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user