Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

How to change the order in which ticket replies are displayed

We are running a second instance of osTicket 1.9.4 for non-technical-support related reasons. The team using this has a request that responses made to open tickets show the newest response at the top instead of the bottom. So when a user or agent views the ticket, the top is the newest reply. I'm hoping it is a simple as a sort ascending/descending option. Can anyone point me in the direction of where this may be located within the coding? Or if it is even possible without major modifications? Thanks.

Comments

  • Q: Can anyone point me in the direction of where this may be located within the coding?
    A: this has been asked before here on the forums.  Search might reveal the answer, but I think that it was for an older version.

    Q: Or if it is even possible without major modifications?
    A: You do have to modify the code. specifically the code that displays the ticket thread, and change ASC to DESC in the mysql Query.  When you update however it would remove this change.

    I think that you would want to do this at /include/class.thread.php circa line 111.
  • I had done what I thought was an extensive search of the forums but didn't come across any other tickets with this request.
    But you were right. class.ticket.php and line 114 in version 1.9.4
    Thanks so much.
  • Sorry, class.thread.php line 114
Sign In or Register to comment.