[rt-users] Sort criteria for History
Stefan Scherer
stefan.scherer at sealsystems.de
Wed Dec 11 05:04:50 EST 2002
A colleage asked me to change the order of the transaction
history. He doesn't want to scroll down the whole page for
each ticket, if the history is a bit longer.
So, I've changed the file lib/RT/Transactions.pm in the following way,
and the History now will be printed with the latest changes first.
*** Transactions.pm 2002/09/05 08:17:40 1.1.1.1
--- Transactions.pm 2002/12/11 09:37:54 1.2
***************
*** 39,45 ****
# By default, order by the date of the transaction, rather than ID.
$self->OrderBy( ALIAS => 'main',
FIELD => 'Created',
! ORDER => 'ASC');
return ( $self->SUPER::_Init(@_));
}
--- 39,45 ----
# By default, order by the date of the transaction, rather than ID.
$self->OrderBy( ALIAS => 'main',
FIELD => 'Created',
! ORDER => 'DESC'); # was ORDER => 'ASC'
return ( $self->SUPER::_Init(@_));
}
I'm using RT 2.0.15, but the change should also work in
other versions.
Bye,
Stefan
--
Stefan Scherer
SEAL Systems Tel. : +49 (0) 9195-926-128
Lohmuehlweg 4 Fax : +49 (0) 9195-1739
D-91341 Roettenbach MailTo:stefan.scherer at sealsystems.de
Germany WWW : http://www.sealsystems.de
More information about the rt-users
mailing list