[rt-users] Ticket Body in Email
Stefan Seiz
talklists at index-s.de
Mon Dec 15 13:36:44 EST 2003
On 15.12.2003 3:59 Uhr, Bill Shinn <packet791 at yahoo.com> wrote:
> BTW, How do you reverse sort them permanently? Is
> there a way to do this globally?
Yes, and I hope what I did is the recommend way to do it.
in /opr/rt3/lib/RT
I created an a file called "Transactions_Local.pm" which should override
"Transactions.pm".
The files purpose is to list all ticket transactions DESCENDING which means
latest (youngest) transaction on top.
The files contents are:
use strict;
no warnings qw(redefine);
# {{{ sub _Init
sub _Init {
my $self = shift;
$self->{'table'} = "Transactions";
$self->{'primary_key'} = "id";
# By default, order by the date of the transaction, rather than ID.
$self->OrderBy( ALIAS => 'main',
FIELD => 'Created',
ORDER => 'DESC');
return ( $self->SUPER::_Init(@_));
}
# }}}
1;
--
<http://www.StefanSeiz.com>
Spamto: <bin at imd.net>
More information about the rt-users
mailing list