[rt-users] Reverse (date) order in Ticket History
Rob Walker
rob at myinternetplace.net
Wed Feb 13 13:09:22 EST 2002
On Wednesday 13 February 2002 07:33, Daniel Schwager wrote:
> Bruce Campbell wrote:
> >
> > On Sun, 10 Feb 2002, Daniel Schwager wrote:
> >
> > > did somebody patched the RT2 code (2-0-11) to
> > > show the hostory in a reverse order (means
> >
> > > I think, i have to change
> > > /opt/rt2/WebRT/html/Ticket/Elements/ShowHistory
> > > but i don't know the internal data structure ....
> >
> > In the above file, you will need to add ordering to the Transactions
> > variable, so after:
> >
> > my $Transactions = $Ticket->Transactions;
> >
> > add:
> >
> > $Transactions->OrderBy( FIELD => 'id',
> > ORDER => 'DESC' );
> >
> > ( default ordering is ASCending )
>
> Cool - Thank you very much !! It works great !
Now turn that into a link to put in the default ticket list page, so that each
person can do this as they are working with rt. ;-)
rob
More information about the rt-users
mailing list