osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now
Adding custom fields to the ticket table and sorting them
I am trying to add custom fields to the ticket table.
So I've followed these steps.
I've added a new header by modifying the $query_coloumns
$queue_columns = array(
'severity' => array(
'width' => '7.4%',
'heading' => __('Severity'),
I can see a $sort_options array - is this for the button on the right hand side?
I've added the custom field to the $tickets->values
This adds the field to the table.
<?php echo $T['cdata__severity']; ?>
I've added this case to the switch ($sort_cols)
^ I am unsure how to fix this sorting issue. Its not setting the dir - 0/1