Page 1 of 1

Possible to change default show ticket status to any?

Posted: Thu Feb 23, 2006 5:05 pm
by code3
Script URL: Internal
Version of script: 0.93.1
Version of PHP: 5.1.1
Hosting company: Internal
Have you searched THIS FORUM for your problem: Yes
(if not please do before posting)
If so, what terms did you try:

Write your message below:

First off, I would like to thank the author for a great piece of software. Easy to setup, maintain, and use. Great work!

My question involves the tickets that are displayed on the main page. I would like to have all tickets displayed as the default option, instead of just open tickets. If this is possible, does it matter who is logged in? Any help would be greatly appreciated. Thanks!

Posted: Thu Feb 23, 2006 6:50 pm
by Klemen
Changing line 39 in file /inc/print_tickets.inc.php from

Code: Select all

if (!isset($_GET['status'])) {$status=1; $sql .= " AND `status`=$status ";}
to

Code: Select all

if (!isset($_GET['status'])) {$status=2;}
should do the trick.

Regards

Posted: Thu Feb 23, 2006 7:41 pm
by code3
Worked like a charm! Thanks!

Posted: Fri Feb 24, 2006 5:00 pm
by code3
Along those same lines. Now that every ticket is displayed, can I order them by open status first. I am able to change the field in which they are ordered by, but I couldnt figure out the asc and desc. When I have it order them by status, the closed ones are at the top. I would like to reverse that by default. Thanks!