From 2275fb7593fbdab22d9a9295983b042ba675a3d8 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Fri, 21 Aug 2015 16:41:25 -0500 Subject: [PATCH] client: Avoid duplicate tickets due to collaborator --- include/client/tickets.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/client/tickets.inc.php b/include/client/tickets.inc.php index fef80c600..cf3c5e1d9 100644 --- a/include/client/tickets.inc.php +++ b/include/client/tickets.inc.php @@ -95,10 +95,12 @@ if ($settings['keywords']) { $tickets->filter(array('number__startswith'=>$q)); } else { //Deep search! // Use the search engine to perform the search - $tickets = $ost->searcher->find($q, $tickets)->distinct('ticket_id'); + $tickets = $ost->searcher->find($q, $tickets); } } +$tickets->distinct('ticket_id'); + TicketForm::ensureDynamicDataView(); $total=$tickets->count(); -- GitLab