-
-
July 24, 2018 at 9:40 am #1989RramalhoParticipant
This problem exists on the 1.10.4v1.0 of osticket awesome, desktop version. I haven’t really checked if the same problem applies to previous versions of this theme.
In the page /scp/tickets.php the header of the column with the checkboxes can be clicked and a request is made to the database to sort by an non existent field (checkbox) which is an error and exhibits no results. I changed the file ‘tickets.inc.php’ on the include/staff dir in such a way that a click on that header actually toggles between selecting and deselecting the page of tickets, a feature that I find convenient. If someone also finds this feature convenient, here are my modifications:<br /><br /> <br /> Replace lines 550 to 558 with:
if($k != ‘checkbox’){<br /> echo sprintf( ‘
class=”%s”>%s‘,<br /> $column[‘width’],<br /> $column[‘sort’] ?: $k,<br /> $column[‘sort_dir’] ? 0 : 1,<br /> $qstr,<br /> isset($column[‘sort_dir’])<br /> ? ($column[‘sort_dir’] ? ‘asc’: ‘desc’) : ”,<br /> $column[‘heading’]);<br /> } else {<br /> echo sprintf( ‘
‘, $column[‘width’], $column[‘heading’]);<br /> }
Finally remove the line.
<?php echo __(‘Toggle’);?>
-
April 29, 2019 at 9:55 am #3871stevlandKeymaster
Hi @ramalho,
I just realized that the forum software I’m using has been falsely flagging some posts as “spam” and segregating them.
Thank you for taking the time to post this. Just so you know, I didn’t see it until now!
I considered adding your mod to the next release, but I decided against it. I feel that it gives an unexpected result (all of the other column headers, when clicked, sort the table data). And there is already a “Select: All None Toggle” function at the bottom of the ticket list.
It is a nice little hack though, for those that are interested. Thanks for sharing.
-
You must be logged in to reply to this topic.