Skip to content
Snippets Groups Projects
Commit 575a705d authored by Peter Rotich's avatar Peter Rotich
Browse files

bug: My Tickets

Fix a bug where tickets assigned to ANY team and unassigned to an agent
showed up on My Tickets count.
parent f4977da4
No related branches found
No related tags found
No related merge requests found
...@@ -2840,7 +2840,11 @@ implements RestrictedAccess, Threadable { ...@@ -2840,7 +2840,11 @@ implements RestrictedAccess, Threadable {
$stats['overdue'] += $S['count']; $stats['overdue'] += $S['count'];
if ($S['staff_id'] == $id) if ($S['staff_id'] == $id)
$stats['assigned'] += $S['count']; $stats['assigned'] += $S['count'];
elseif ($S['team_id'] && $S['staff_id'] == 0) elseif ($S['team_id']
&& $S['staff_id'] == 0
&& $teams
&& in_array($S['team_id'], $teams))
// Assigned to my team but uassigned to an agent
$stats['assigned'] += $S['count']; $stats['assigned'] += $S['count'];
} }
return $stats; return $stats;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment