[Rt-commit] r5496 - rt/branches/3.4-RELEASE/html/Ticket/Elements
ruz at bestpractical.com
ruz at bestpractical.com
Fri Jun 30 16:09:09 EDT 2006
Author: ruz
Date: Fri Jun 30 16:09:08 2006
New Revision: 5496
Modified:
rt/branches/3.4-RELEASE/html/Ticket/Elements/ShowHistory
Log:
Changes:
* new config option $OldestTransactionsFirst that allow
administrator to reverse order of transactions on
history page
Modified: rt/branches/3.4-RELEASE/html/Ticket/Elements/ShowHistory
==============================================================================
--- rt/branches/3.4-RELEASE/html/Ticket/Elements/ShowHistory (original)
+++ rt/branches/3.4-RELEASE/html/Ticket/Elements/ShowHistory Fri Jun 30 16:09:08 2006
@@ -136,8 +136,16 @@
} else {
$Transactions = $Ticket->Transactions;
}
-my $i;
+
+my $OldestFirst = $RT::OldestTransactionsFirst? 'DESC': 'ASC';
+$Transactions->OrderByCols( { FIELD => 'Created',
+ ORDER => $OldestFirst },
+ { FIELD => 'id',
+ ORDER => $OldestFirst },
+ );
+
+my $i;
$Attachments ||= $m->comp('/Ticket/Elements/FindAttachments', Ticket => $Ticket, Tickets => $Tickets || undef);
$AttachmentContent ||= $m->comp('/Ticket/Elements/LoadTextAttachments', Ticket => $Ticket);
More information about the Rt-commit
mailing list