Sorted by name

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
jessar94
Posts: 76
Joined: Sun Mar 16, 2014 7:54 pm

Sorted by name

Post by jessar94 »

i have a new list named it: datornamn (in english, computername)

i use Custom fields 1
Image
my code in ticket_list.inc.php

Code: Select all

<td class="$color">$ticket[custom1]&nbsp;</td>
my code further down:

Code: Select all

<th class="admin_white" style="text-align:left; white-space:nowrap;"><a href="<?php echo $href . '?' . $query . $sort_possible['custom1'] . '&sort='; ?>custom1"><?php echo $hesklang['datornamn']; ?></a></th>
When i have two tickets and i have two computers called acer and hp can't hesk sort by the name, has anyone a solution?

(sorry for bad english)
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Sorted by name

Post by Klemen »

Have you added "custom1" to the $sort_possible array inside file "inc/prepare_ticket_search.inc.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
jessar94
Posts: 76
Joined: Sun Mar 16, 2014 7:54 pm

Re: Sorted by name

Post by jessar94 »

I solved it, thanks for your help :)
Klemen wrote:Have you added "custom1" to the $sort_possible array inside file "inc/prepare_ticket_search.inc.php"?
Post Reply