[Rt-commit] [svn] r1133 - rt/branches/rt-3.1/lib/RT
huberth at pallas.eruditorum.org
huberth at pallas.eruditorum.org
Tue Jun 22 16:31:04 EDT 2004
Author: huberth
Date: Tue Jun 22 16:31:04 2004
New Revision: 1133
Modified:
rt/branches/rt-3.1/lib/RT/Transactions_Overlay.pm
Log:
RT-Ticket: 5149
RT-Status: resolved
* Transactions previously were ordered only by time of creation, and were
displayed in an arbitrary order otherwise. They are now sorted first by
time of creation and next by transaction ID.
Modified: rt/branches/rt-3.1/lib/RT/Transactions_Overlay.pm
==============================================================================
--- rt/branches/rt-3.1/lib/RT/Transactions_Overlay.pm (original)
+++ rt/branches/rt-3.1/lib/RT/Transactions_Overlay.pm Tue Jun 22 16:31:04 2004
@@ -54,9 +54,10 @@
$self->{'primary_key'} = "id";
# By default, order by the date of the transaction, rather than ID.
- $self->OrderBy( ALIAS => 'main',
- FIELD => 'Created',
- ORDER => 'ASC');
+ $self->OrderByCols( { FIELD => 'Created',
+ ORDER => 'ASC' },
+ { FIELD => 'id',
+ ORDER => 'ASC' } );
return ( $self->SUPER::_Init(@_));
}
More information about the Rt-commit
mailing list