From 30de43d03acdfa33b0979cd1ec1ad52aa65ca7e1 Mon Sep 17 00:00:00 2001
From: aydreeihn <adriane@enhancesoft.com>
Date: Thu, 7 Sep 2017 15:11:21 -0500
Subject: [PATCH] fix manage collabs for ticket preview contd

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

diff --git a/include/staff/templates/ticket-preview.tmpl.php b/include/staff/templates/ticket-preview.tmpl.php
index 50dfe59f3..447e50330 100644
--- a/include/staff/templates/ticket-preview.tmpl.php
+++ b/include/staff/templates/ticket-preview.tmpl.php
@@ -143,7 +143,7 @@ echo '</div>'; // ticket preview content.
     <?php
     echo sprintf('<span><a class="collaborators"
                             href="#thread/%d/collaborators">%s</a></span>',
-                            $ticket->getId(),
+                            $thread->getId(),
                             $thread && $thread->getNumCollaborators()
                                 ? __('Manage Collaborators') : __('Add Collaborator')
                                 );
-- 
GitLab