forked from fa/breadcrumb-the-shire
fix(helpdesk): revert to PBI_LV_Tickets for team query, add error logging
PBI_FP_Tickets (FactPage) fails without a customer filter. Switch back to PBI_LV_Tickets which works reliably unfiltered. Description and Company_Contact_Name added to select — BC will return them if available, otherwise they fall back to empty strings via existing null-coalescing. Add console.error in JS catch to surface rendering errors. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -597,9 +597,9 @@ class BcODataGateway
|
||||
*/
|
||||
public function getTicketsForTeam(): array
|
||||
{
|
||||
$url = $this->settingsGateway->buildEntityUrl(self::ENTITY_TICKETS)
|
||||
$url = $this->settingsGateway->buildEntityUrl(self::ENTITY_TICKETS_LV)
|
||||
. '?$top=500'
|
||||
. '&$select=' . rawurlencode('No,Description,Company_Contact_Name,Customer_No,Ticket_State,Support_User_Name,Created_On,Last_Activity_Date')
|
||||
. '&$select=' . rawurlencode('No,Customer_No,Category_1_Code,Escalation_Code,Ticket_State,Last_Activity_Date,Created_On,Process_Stage,Process_Code,Support_User_Name,Description,Company_Contact_Name')
|
||||
. '&$orderby=' . rawurlencode('Created_On desc');
|
||||
|
||||
$response = $this->request('GET', $url);
|
||||
|
||||
Reference in New Issue
Block a user