From 5fe1779cdb97c820429666c1949d8ab3ace345e0 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Wed, 12 Aug 2015 16:32:04 -0500
Subject: [PATCH] client: Filter duplicate tickets from listing

---
 include/staff/templates/thread-entries.tmpl.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/staff/templates/thread-entries.tmpl.php b/include/staff/templates/thread-entries.tmpl.php
index a43e45ba2..7e5e16388 100644
--- a/include/staff/templates/thread-entries.tmpl.php
+++ b/include/staff/templates/thread-entries.tmpl.php
@@ -8,7 +8,7 @@ $htmlId = $options['html-id'] ?: ('thread-'.$this->getId());
 <div id="<?php echo $htmlId; ?>">
     <div id="thread-items" data-thread-id="<?php echo $this->getId(); ?>">
     <?php
-    if (count($entries)) {
+    if ($entries->exists(true)) {
         // Go through all the entries and bucket them by time frame
         $buckets = array();
         $rel = 0;
-- 
GitLab