Auto Assign to the Current Logged In Staff in the New Ticket Form of osTicket v1.6 RC5
There was a simple request that it should be a default setting in the new ticket form in staff-side of osTicket. It was about how to auto-assign to the current logged in staff when staff creates a ticket via Staff Panel. So I made the modification in order to make it happened. By implementing this modification, then each time staff visits the new ticket form at the Staff Panel, then on the Assign: directive will automatically select the current logged in staff.
Open your \include\staff\newticket.inc.php file, and find this code:
144 | $selected = ($info['staffId']==$staffId)?'selected':''; ?> |
then replace with this following code:
144 | $selected = ($thisuser->getId()==$staffId)?'selected':''; ?> |
That’s it? Yes! That’s it! Have a nice code!
Print This Post
Recent Comments