Page 1 of 1

Sorted by name

Posted: Mon Mar 24, 2014 7:34 pm
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)

Re: Sorted by name

Posted: Thu Mar 27, 2014 3:47 pm
by Klemen
Have you added "custom1" to the $sort_possible array inside file "inc/prepare_ticket_search.inc.php"?

Re: Sorted by name

Posted: Thu Mar 27, 2014 4:21 pm
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"?