Skip to content
Snippets Groups Projects
Commit 9cf218c2 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #1709 from greezybacon/issue/ticket-delete-collaborators


thread: Remove collaborators when removing the thread

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents ba9be7ab bdc13fba
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