Skip to content
Snippets Groups Projects
Commit d564a658 authored by jdelhome3578's avatar jdelhome3578 Committed by GitHub
Browse files

Fix issue #3268

This fixes sorting and total ticket count.
parent 55dc25ac
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ $tickets->distinct('ticket_id');
TicketForm::ensureDynamicDataView();
$total=$tickets->count();
$total=$visibility->count();
$page=($_GET['p'] && is_numeric($_GET['p']))?$_GET['p']:1;
$pageNav=new Pagenate($total, $page, PAGE_LIMIT);
$qstr = '&'. Http::build_query($qs);
......@@ -123,6 +123,7 @@ if($search)
$negorder=$order=='-'?'ASC':'DESC'; //Negate the sorting
$tickets->order_by($order.$order_by);
$tickets->values(
'ticket_id', 'number', 'created', 'isanswered', 'source', 'status_id',
'status__state', 'status__name', 'cdata__subject', 'dept_id',
......
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