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

queues: Fix queue count

parent a843bbab
No related branches found
No related tags found
No related merge requests found
...@@ -389,9 +389,9 @@ class SearchAjaxAPI extends AjaxController { ...@@ -389,9 +389,9 @@ class SearchAjaxAPI extends AjaxController {
)); ));
} }
else { else {
$expr = SqlCase::N()->when(new SqlExpr(new Q($Q->constraints)), 1); $expr = SqlCase::N()->when(new SqlExpr(new Q($Q->constraints)), new SqlField('ticket_id'));
$query->aggregate(array( $query->aggregate(array(
'q'.$queue->id => SqlAggregate::COUNT($expr) 'q'.$queue->id => SqlAggregate::COUNT($expr, true)
)); ));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment