Skip to content

Commit 049503b

Browse files
committed
Bug: Alternate table for users was not working in ticket list
1 parent 74c49e8 commit 049503b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Controllers/TicketsController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function data($ticketList = 'active')
110110
'agent.name as agent_name',
111111
'panichd_priorities.name AS priority',
112112
'panichd_priorities.magnitude AS priority_magnitude',
113-
$members_table . '.name AS owner_name',
113+
'members.name AS owner_name',
114114
'creator.name as creator_name',
115115
'panichd_tickets.user_id',
116116
'panichd_tickets.creator_id',
@@ -125,7 +125,7 @@ public function data($ticketList = 'active')
125125
];
126126

127127
if (Setting::grab('departments_feature')){
128-
$collection->leftJoin('panichd_departments', 'panichd_departments.id', '=', $members_table . '.department_id')
128+
$collection->leftJoin('panichd_departments', 'panichd_departments.id', '=', 'members.department_id')
129129
->leftJoin('panichd_departments as dep_ancestor', 'panichd_departments.department_id', '=', 'dep_ancestor.id');
130130

131131
// Department columns

0 commit comments

Comments
 (0)