For some reason it was decided that if there are no open tickets then the ticket page should list all the Answered Tickets and then if there are none of those it should show all Closed tickets. This is highly confusing for everyone and we’re going to show you how to make it always show the Open Tickets page even when there are no open tickets.

scp/tickets.php
if($stats['open'])
$nav->addSubMenu(array('desc'=>'Open ('.$stats['open'].')','title'=>'Open Tickets', 'href'=>'tickets.php', 'iconclass'=>'Ticket'));
Essentially we want to get rid of the "if" statement and say to always show the “Open page” title/nav. So just modify it to look something like this:
// We don't want an if (there are tickets) we always want the open page up/available.
// if($stats['open'])
$nav->addSubMenu(array('desc'=>'Open ('.$stats['open'].')','title'=>'Open Tickets', 'href'=>'tickets.php', 'iconclass'=>'Ticket'));
Then remove or comment out the following so that we’ll always see the Open ticket page even if there are 0 open tickets:
include/staff/tickets.inc.php
}elseif(!$stats['answered']) { //no open or answered tickets (+-queue?) - show closed tickets.???
$status='closed';
$results_type='Closed Tickets';




osTicket > Transfer/Assign with no comment
2010 Leave a Comment
Today we are going to show you how to get rid of the annoying requirement of adding a comment to a ticket transfer or assignment…
For the “Assign to Staff” section you can comment out the following line from
scp/tickets.php
$fields['assign_message'] = array('type'=>'text', 'required'=>1, 'error'=>'Message required');like so:
//$fields['assign_message'] = array('type'=>'text', 'required'=>1, 'error'=>'Message required');For assign to department you’ll need:
scp/tickets.php
$fields['message'] = array('type'=>'text', 'required'=>1, 'error'=>'Note/Message required');Like so:
//$fields['message'] = array('type'=>'text', 'required'=>1, 'error'=>'Note/Message required');Then if you want to let people know that it is not required you can go into
include/staff/viewticket.inc.php
Find (for assign to staff):
And remove:
Find (for department transfer):
Remove:
Now comments are no longer required to be present before assigning or transferring a ticket – and users are aware that it is not required.