[rt-users] Reverse (date) order in Ticket History

Daniel Schwager Daniel.Schwager at dtnet.de
Wed Feb 13 10:33:37 EST 2002


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 !

Tschau

Danny

-- 
------------------------------------------------------------
DT Netsolution GmbH -  Talaeckerstr. 30 -  D-70437 Stuttgart
Tel: +49-711-849910-32               Fax: +49-711-849910-932
WEB: http://www.dtnet.de/           email: schwager at dtnet.de




More information about the rt-users mailing list