In line with some of the requests which have been asked in a few threads. I needed to put something together to make it easier for me to launch 'ALL Open Tickets' this was meant to include isanswered and Open status alike in one list.
Open scp/tickets.php
Find the following code: (approx. line 517-521)
$stats=db_fetch_array(db_query($sql));
//print_r($stats);
$nav->setTabActive('tickets');
**Note** I wanted this 'show all' Nav option 1st so I chose this location. You can paste this code here or easily post this code after the multiple If statements before or after where it says 'Closed' (approx Line 551)
Add the following code:
$nav->addSubMenu(array('desc'=>'All Outstanding Tickets','title'=>'All Outstanding Tickets', 'href'=>'tickets.php?a=search&query=&dept=0&status=open&startDate=&endDate=&stype=LIKE&sort=date&order=DESC&limit=15', 'iconclass'=>'Ticket'));
This search string was provided by teryakisan (Credit where credit is due). Hopefully I have made this a bit more functional for everyone.
I've attached an image of how it looks in my installation
-Rich
