Skip to content
Snippets Groups Projects
Commit 216453f3 authored by aydreeihn's avatar aydreeihn
Browse files

Issue: Duplicate Tickets in Closed Queue

When going to my closed queue, I had the same ticket showing multiple times. This commit moves the call to the distinct method outside of any if statements so that the tickets will always be grouped by their id.
parent eafb34d3
No related branches found
No related tags found
No related merge requests found
......@@ -90,9 +90,9 @@ if (isset($tickets->extra['tables'])) {
$criteria->values_flat('ticket_id')]);
# Index hint should be used on the $criteria query only
$tickets->clearOption(QuerySet::OPT_INDEX_HINT);
$tickets->distinct('ticket_id');
}
$tickets->distinct('ticket_id');
$count = $queue->getCount($thisstaff) ?: (PAGE_LIMIT*3);
$pageNav->setTotal($count, true);
$pageNav->setURL('tickets.php', $args);
......
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