Skip to content
Snippets Groups Projects
Commit bdc13fba authored by Jared Hancock's avatar Jared Hancock
Browse files

thread: Remove collaborators when removing the thread

parent d700d4eb
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment