Page 1 of 1

Tickets List - Change Column Order

Posted: Wed Jun 16, 2021 8:36 am
by Lukosius
Hi there,
We want to change the order (left to right) of the columns in the Ticket List.
I have found where these can be re-ordered in "inc/ticket_list.inc.php"

However I have two questions:
1. How do I change the order of the column headers to match?
2. I have around 5 custom fields. It appears that to rearrange these, they have to remain 'together' in the same little group. Is this correct?

P.S. I am quite familiar with PHP coding.

Re: Tickets List - Change Column Order

Posted: Wed Jun 16, 2021 4:42 pm
by Klemen
The column header is printed based on $hesk_settings['ticket_list'] (see hesk_settings.inc.php and function hesk_print_list_head in inc/ticket_list.inc.php); you can overwrite/reorder this variable before printing the header.

Custom fields are together because they are processed in a foreach loop. You could do them one by one in any order you want, but unfortunately, such customizations are out of the scope of my support.