diff --git a/include/class.thread.php b/include/class.thread.php index 8564e249ab7cb6bbbe934b084c949f6de3d46e9e..dc8a559e1158ca0f8d23d741e6a6e61de5b1e838 100644 --- a/include/class.thread.php +++ b/include/class.thread.php @@ -200,10 +200,18 @@ class Thread { return false; $this->deleteAttachments(); + $this->removeCollaborators(); return true; } + function removeCollaborators() { + $sql='DELETE FROM '.TICKET_COLLABORATOR_TABLE + .' WHERE ticket_id='.db_input($this->getTicketId()); + + return (db_query($sql) && db_affected_rows()); + } + /* static */ function lookup($ticket) {