Page 1 of 1

Swap fields in table

Posted: Mon Jul 04, 2016 4:42 pm
by Mangoz
Script URL: http://www.hesk.com/demo.php
Version of script: 2.6.7



How to change field sites ? For example , status field in the beginning of the table .

Re: Swap fields in table

Posted: Fri Jul 08, 2016 1:49 pm
by Klemen
There's no built-in way of doing it, you will need to modify HTML code output in inc/ticket_list.inc.php file to achieve this.

Re: Swap fields in table

Posted: Sun Jul 10, 2016 11:48 am
by Mangoz
+ hesk_settings.inc.php (// ==> TICKET LIST)
:) Thank

Re: Swap fields in table

Posted: Sun Jul 10, 2016 1:30 pm
by Klemen
Headers are printed in the same file.

Try this:

1. open hesk_settings.php file and copy line that starts with

Code: Select all

$hesk_settings['ticket_list']
2. in ticket_list.inc.php find this line

Code: Select all

foreach ($hesk_settings['ticket_list'] as $field)
3. paste the line from settings file just ABOVE the line in step 2, then re-order the list of fields in that code

Re: Swap fields in table

Posted: Sun Jul 10, 2016 5:57 pm
by Mangoz
It worked!

Where can I change the sorting by status?

default:
0 => 'NEW',
1 => 'WAITING REPLY',
2 => 'REPLIED',
3 => 'RESOLVED (CLOSED)',
4 => 'IN PROGRESS',
5 => 'ON HOLD',


necessary status (3 => 'RESOLVED (CLOSED)',), display at the end of the table.
Status was close to the very end.