osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go
get it now
Clear staff on transfer to dept
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.php
tickets.php => //If no errors - them attempt the transfer
if(!$errors && $ticket->transfer($_POST['deptId'], $_POST['transfer_comments'])) {
$msg = 'Ticket transferred successfully to '.$ticket->getDeptName();
if($_POST['assignId'][0]=='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;
}
Comments
"Created an issue on Github for this: https://github.com/osTicket/osTicket-1.8/issues/1100".
Did you click on the link and look at the issue report on github? No? Perhaps you should.
There is an entire discussion there about the topic, and no it's still open.