Owner sort order for staff

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Josh
Posts: 31
Joined: Wed Apr 04, 2007 3:13 pm

Owner sort order for staff

Post by Josh »

Script URL: intranet
Version of script: 2.5.2
Hosting company: self
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: "Users sort"

Write your message below:

We've been using this script for quite some time. I purchased a 3 site license and upgraded to 2.5.2. Great stuff. We just went over 10k in tickets!

There's 1 item perhaps you could help with. As we've added staff over time our user list has grown. We're up to about 25 users, but in the _users table there's no sort order. If possible I'd like to sort alphabetically so when assigning an owner the list would be less hunt and peck (similar to the category table and its cat_order column.

I'm not sure if this would be something on the script or db side. Any help is appreciated.

Josh
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Owner sort order for staff

Post by Klemen »

Actually I have this change ready for the next HESK release.

You can apply it to the current version by changing this exact code:

Code: Select all

users` ORDER BY `id`
to

Code: Select all

users` ORDER BY `name`
(be careful about ` chars, change the code exactly as posted)

in files:

admin/admin_ticket.php
admin/export.php
admin/mail.php
admin/manage_users.php
admin/new_ticket.php
admin/reports.php
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
Josh
Posts: 31
Joined: Wed Apr 04, 2007 3:13 pm

Re: Owner sort order for staff

Post by Josh »

Confirmed working . . . as if there were a doubt.

Any way to show tickets grouped by owner alphabetically as well?

Thanks!
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Owner sort order for staff

Post by Klemen »

That one's a bit more tricky, you would have to develop a "CASE" logic for the SQL query to order numerical owner ID's based on the name associated with that ID (or do a join, but that would effect performance on large databases). I can't help with the exact code here though, sorry.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
Post Reply