PDA

View Full Version : Default sort by date?


simplysped
03-20-2008, 06:50 AM
Hi Guys,
When I view open or closed tickets, it sorts by priority. How can I make it sort by date automatically without having to click the date sort button each time?

thanks

Corey
03-20-2008, 10:54 PM
File: /include/staff/tickets.inc.php.

Line: 154.

Find: $order_by =$order_by?$order_by:'priority_urgency,ticket.crea ted';

Replace with: $order_by =$order_by?$order_by:'ticket.created';

simplysped
03-21-2008, 04:11 PM
works like a charm, thank you very very much :)