Hey all,
I'm writing some reports and mods for osTicket 1.6.rc5.
One of the requirements we have is pulling an accurate list of tickets closed and assigned per staff. However, osTicket appears to zero out the staff_id in the tickets table when someone closes a ticket.
I noticed close() in class.tickets appears to be responsible for this zeroing:
$sql= 'UPDATE '.TICKET_TABLE.' SET status='.db_input('closed').',staff_id=0,isoverdue=0,duedate=NULL,updated=NOW(),closed=NOW() '.
' WHERE ticket_id='.db_input($this->getId());
Which is unfortunate because it means I can't write a couple of the reports we need the most. I know how to change this code to store the staff ID, but before I do that, I want to make sure I'm understanding the problem first.
Is there, in fact, no other way but modifying this code to pull an accurate report of the tickets a particular staff member closed?
Is the problem the same -- IE, no staff data for closed tickets -- when considering how to get the (closed) tickets that were assigned to staff members during a period of time?
Thanks,
Andrew