Hi, is there anyway to change how tickets are sorted by default. The default sort method is to sort by Priority. However, I rather sort my tickets by date, but it is time consuming to sort them each time I answer a ticket. So is there anyway to always have the tickets sorted by another option?
Thanks
Change Sort Default
Moderator: mkoch227
In the file inc/print_tickets.inc.php line 54 assigns the default value for sorting:
You can change 'priority' to some other default option:
trackid (ticket tracking ID)
dt (date)
and also name, subject, status
Note though that date is the date of creation of ticket, not last reply. That's coming in next version, but too complicated in this one to explain
viewtopic.php?t=1325
Code: Select all
$sort = hesk_input($_GET['sort']) or $sort='priority';
trackid (ticket tracking ID)
dt (date)
and also name, subject, status
Note though that date is the date of creation of ticket, not last reply. That's coming in next version, but too complicated in this one to explain
viewtopic.php?t=1325
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
-
- Posts: 5
- Joined: Sat Mar 17, 2007 3:36 pm
Hmm, try changing
to
Didn't test it though
Code: Select all
if (isset($_GET['asc']) && $_GET['asc']==0) {$sql .= " DESC ";$asc=0;$asc_rev=1;}
else {$sql .= " ASC ";$asc=1;$asc_rev=0;}
Code: Select all
if (isset($_GET['asc']) && $_GET['asc']==0) {$sql .= " ASC ";$asc=0;$asc_rev=1;}
else {$sql .= " DESC ";$asc=1;$asc_rev=0;}
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools