From 9ee12a9a076b48a173df41380f65670c777f8c99 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Thu, 26 Mar 2015 08:48:59 -0500
Subject: [PATCH] oops: Fix crash removing a collaborator from a thread

---
 include/class.ticket.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/class.ticket.php b/include/class.ticket.php
index a2cee6153..12327054c 100644
--- a/include/class.ticket.php
+++ b/include/class.ticket.php
@@ -986,7 +986,7 @@ implements RestrictedAccess, Threadable {
             foreach ($ids as $k => $cid) {
                 if (($c=Collaborator::lookup($cid))
                         && $c->getTicketId() == $this->getId()
-                        && $c->remove())
+                        && $c->delete())
                      $collabs[] = $c;
             }
 
@@ -2007,7 +2007,7 @@ implements RestrictedAccess, Threadable {
         $c = Collaborator::lookup(array(
                     'user_id' => $user->getId(),
                     'thread_id' => $this->getThreadId()));
-        if ($c && $c->remove())
+        if ($c && $c->delete())
             $note.= ' '._S('(removed as collaborator)');
 
         $this->logNote('Ticket ownership changed', $note);
-- 
GitLab