Help Desk Software & Beyond
May 21, 2012, 11:03:23 PM *
Welcome, Guest. Please login or register.
To post messages you need to register. We apologize for inconvenience, but this is to prevent spam.
Registration is instant (no email verification) and we do not ask for any personal information.

Login with username, password and session length
News: Welcome to Help Desk Software forum!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [MOD] reverse the order of the comments (message sort)  (Read 2224 times)
bcamelkio
Newbie
*

Karma: -3
Posts: 37


View Profile
« on: August 09, 2007, 07:04:49 PM »

Is it possible to reverse the order of the comments in a ticket to display the latest one on top?  Thanks,
« Last Edit: January 18, 2008, 03:22:18 PM by sparky672 » Logged
Magnus Wester
Full Member
***

Karma: 2
Posts: 116



View Profile WWW
« Reply #1 on: August 10, 2007, 12:45:20 AM »

There is no setting for it that I know of, so this would probably require a coding change.
Logged
Alex
Administrator
Hero Member
*****

Karma: 22
Posts: 605



View Profile WWW
« Reply #2 on: August 10, 2007, 08:41:35 AM »

Please edit TTXTicket.pm, look for

  foreach my $msg (@{$t->{messages}}) {


replace with

  foreach my $msg (reverse @{$t->{messages}}) {
Logged

Follow me on: LinkedIn
bcamelkio
Newbie
*

Karma: -3
Posts: 37


View Profile
« Reply #3 on: August 10, 2007, 02:49:07 PM »

Worked great.  Thanks!
Logged
jdean
Newbie
*

Karma: 1
Posts: 23



View Profile
« Reply #4 on: January 21, 2008, 01:13:21 PM »

I applied this modification and noticed that it does not play well with the Message Editing module.

The edit and del buttons will edit the wrong messages. After the mod, messages are listed in the order 3-2-1, but the editor still thinks they are in the order 1-2-3, so selecting message 3 for editing will call up message 1.

I've reported this as a possible bug to Alex.


Edit by Sparky:

http://forum.unitedwebcoders.com/index.php/topic,511.msg2783.html#msg2783
« Last Edit: January 21, 2008, 02:09:33 PM by sparky672 » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media Valid XHTML 1.0! Valid CSS!
Page created in 0.021 seconds with 18 queries.