fix: Wizard shows case title instead of case_no (v1.3.114)

This commit is contained in:
Christian 2026-01-05 17:12:41 +01:00
parent 0974f41bd1
commit 99eac06cfd
2 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
1.3.113
1.3.114

View File

@ -541,7 +541,7 @@ class WizardService:
t.approved_hours, t.rounded_to, t.approval_note, t.billable,
t.approved_at, t.approved_by, t.vtiger_data, t.sync_hash,
t.created_at, t.updated_at, t.last_synced_at,
COALESCE(c.vtiger_data->>'case_no', c.title)::VARCHAR(500) AS case_title,
COALESCE(NULLIF(TRIM(c.title), ''), c.vtiger_data->>'title', 'Ingen titel')::VARCHAR(500) AS case_title,
c.description AS case_description,
c.status AS case_status,
c.vtiger_id AS case_vtiger_id,
@ -568,7 +568,7 @@ class WizardService:
t.approved_hours, t.rounded_to, t.approval_note, t.billable,
t.approved_at, t.approved_by, t.vtiger_data, t.sync_hash,
t.created_at, t.updated_at, t.last_synced_at,
COALESCE(c.vtiger_data->>'case_no', c.title)::VARCHAR(500) AS case_title,
COALESCE(NULLIF(TRIM(c.title), ''), c.vtiger_data->>'title', 'Ingen titel')::VARCHAR(500) AS case_title,
c.description AS case_description,
c.status AS case_status,
c.vtiger_id AS case_vtiger_id,
@ -619,7 +619,7 @@ class WizardService:
# Hent ALLE timelogs for casen (ikke kun pending)
timelogs_query = """
SELECT t.*,
COALESCE(c.vtiger_data->>'case_no', c.title)::VARCHAR(500) AS case_title,
COALESCE(NULLIF(TRIM(c.title), ''), c.vtiger_data->>'title', 'Ingen titel')::VARCHAR(500) AS case_title,
c.status AS case_status,
c.vtiger_id AS case_vtiger_id,
cust.name AS customer_name,