From cc1ae1aaca2ca1cf4610bce31e530a0c7fd7a63d Mon Sep 17 00:00:00 2001 From: fs Date: Sun, 5 Apr 2026 19:39:45 +0200 Subject: [PATCH] fix(helpdesk): replace description column with category in team ticket table Description is not available on PBI_LV_Tickets. Show Category_1_Code as its own 'Category' column instead of misusing it as description. Remove unused ticket-desc CSS class. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../lib/Module/Helpdesk/Service/DebitorDetailService.php | 2 +- .../helpdesk/pages/helpdesk/team/index(default).phtml | 2 +- modules/helpdesk/web/css/helpdesk.css | 9 --------- modules/helpdesk/web/js/helpdesk-team.js | 6 +++--- 4 files changed, 5 insertions(+), 14 deletions(-) diff --git a/modules/helpdesk/lib/Module/Helpdesk/Service/DebitorDetailService.php b/modules/helpdesk/lib/Module/Helpdesk/Service/DebitorDetailService.php index f505451..36f644e 100644 --- a/modules/helpdesk/lib/Module/Helpdesk/Service/DebitorDetailService.php +++ b/modules/helpdesk/lib/Module/Helpdesk/Service/DebitorDetailService.php @@ -1658,7 +1658,7 @@ class DebitorDetailService $agents[$normalizedUser]['open_ticket_details'][] = [ 'no' => trim((string) ($ticket['No'] ?? '')), - 'description' => trim((string) ($ticket['Description'] ?? (string) ($ticket['Category_1_Code'] ?? ''))), + 'category' => trim((string) ($ticket['Category_1_Code'] ?? '')), 'age_hours' => $ageHours, 'critical' => $isCritical, 'customer_name' => trim((string) ($ticket['Company_Contact_Name'] ?? '')), diff --git a/modules/helpdesk/pages/helpdesk/team/index(default).phtml b/modules/helpdesk/pages/helpdesk/team/index(default).phtml index 2029000..cb0257f 100644 --- a/modules/helpdesk/pages/helpdesk/team/index(default).phtml +++ b/modules/helpdesk/pages/helpdesk/team/index(default).phtml @@ -26,7 +26,7 @@ $periodLabels = [ data-debitor-base-url="" data-label-ticket="" data-label-customer="" - data-label-description="" + data-label-category="" data-label-last-activity="" >
diff --git a/modules/helpdesk/web/css/helpdesk.css b/modules/helpdesk/web/css/helpdesk.css index 41fafd6..b67fe54 100644 --- a/modules/helpdesk/web/css/helpdesk.css +++ b/modules/helpdesk/web/css/helpdesk.css @@ -219,15 +219,6 @@ color: var(--app-muted-color); } - /* Description: takes remaining space, ellipsis on overflow */ - .helpdesk-team-ticket-desc { - width: 100%; - max-width: 0; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - } - /* Links */ .helpdesk-team-ticket-no a, .helpdesk-team-ticket-table td a { diff --git a/modules/helpdesk/web/js/helpdesk-team.js b/modules/helpdesk/web/js/helpdesk-team.js index 8613c3b..67ba0f1 100644 --- a/modules/helpdesk/web/js/helpdesk-team.js +++ b/modules/helpdesk/web/js/helpdesk-team.js @@ -92,8 +92,8 @@ if (container) { } tr.appendChild(customerCell); - // Description - tr.appendChild(h('td', 'helpdesk-team-ticket-desc', t.description || '—')); + // Category + tr.appendChild(h('td', '', t.category || '—')); // Last activity date tr.appendChild(h('td', 'helpdesk-team-ticket-date', formatDateTime(t.last_activity))); @@ -129,7 +129,7 @@ if (container) { const headRow = h('tr'); headRow.appendChild(h('th', '', container.dataset.labelTicket || 'Ticket')); headRow.appendChild(h('th', '', container.dataset.labelCustomer || 'Customer')); - headRow.appendChild(h('th', '', container.dataset.labelDescription || 'Description')); + headRow.appendChild(h('th', '', container.dataset.labelCategory || 'Category')); headRow.appendChild(h('th', '', container.dataset.labelLastActivity || 'Last activity')); thead.appendChild(headRow); table.appendChild(thead);