- Edited
I want to unassign staff on dept transfer. Currently, when a ticket is assigned to a staff member and at some later point they transfer to a dept it remains assigned to them and in their 'Answered' queue. When transferring to another dept is it possible to clear the 'assigned staff' field?Not sure how to make the changes, but I'm assuming it would be in these two files: scp/tickets.php and /include/class.ticket.phptickets.php => //If no errors - them attempt the transferif(!$errors && $ticket->transfer($_POST, $_POST)) { $msg = 'Ticket transferred successfully to '.$ticket->getDeptName(); if($_POST=='s' && $id==$ticket->getStaffId()) { $thisstaff->setStaffId(0); } //Check to make sure the staff still has access to the ticket if(!$ticket->checkStaffAccess($thisstaff)) $ticket=null;}