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

queues: Fix queue count

parent e988b8db
No related branches found
No related tags found
No related merge requests found
......@@ -389,9 +389,9 @@ class SearchAjaxAPI extends AjaxController {
));
}
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(
'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.
Finish editing this message first!
Please register or to comment