From 6d3f44f839ee1900d9c3bbe033adececa06ef422 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Thu, 14 May 2015 08:30:09 -0500
Subject: [PATCH] oops: Fix crash responding to a ticket

---
 include/class.ticket.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class.ticket.php b/include/class.ticket.php
index 605758114..cde27c478 100644
--- a/include/class.ticket.php
+++ b/include/class.ticket.php
@@ -889,7 +889,7 @@ implements RestrictedAccess, Threadable, TemplateVariable {
         if (!isset($this->recipients)) {
             $list = new UserList();
             $list->add($this->getOwner());
-            if ($collabs = $this->getActiveCollaborators()) {
+            if ($collabs = $this->getThread()->getActiveCollaborators()) {
                 foreach ($collabs as $c)
                     $list->add($c);
             }
-- 
GitLab