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) <noreply@anthropic.com>
This commit is contained in:
@@ -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'] ?? '')),
|
||||
|
||||
@@ -26,7 +26,7 @@ $periodLabels = [
|
||||
data-debitor-base-url="<?php e(lurl('helpdesk/debitor/')); ?>"
|
||||
data-label-ticket="<?php e(t('Ticket')); ?>"
|
||||
data-label-customer="<?php e(t('Debtor')); ?>"
|
||||
data-label-description="<?php e(t('Description')); ?>"
|
||||
data-label-category="<?php e(t('Category')); ?>"
|
||||
data-label-last-activity="<?php e(t('Last activity')); ?>"
|
||||
>
|
||||
<section>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user