fix(helpdesk): remove unavailable fields from LV ticket query
PBI_LV_Tickets does not expose Description or Company_Contact_Name — BC returns HTTP 400 on unknown select fields. Revert to original LV field set. Description falls back to Category_1_Code. Customer column shows Customer_No when Company_Contact_Name is unavailable. Show API error message in UI for debugging. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -206,7 +206,15 @@ if (container) {
|
||||
const res = await fetch(dataUrl + '?' + params.toString(), { credentials: 'same-origin' });
|
||||
const json = await res.json();
|
||||
|
||||
if (!json.ok) { showState('error'); return; }
|
||||
if (!json.ok) {
|
||||
console.error('[helpdesk-team] API error:', json.error || json);
|
||||
if (elError) {
|
||||
const p = elError.querySelector('p');
|
||||
if (p && json.error) p.textContent = json.error;
|
||||
}
|
||||
showState('error');
|
||||
return;
|
||||
}
|
||||
if (!json.members || json.members.length === 0) { showState('empty'); return; }
|
||||
|
||||
renderCurrentTab(json.members);
|
||||
|
||||
Reference in New Issue
Block a user