[Rt-commit] r4096 - in rt/branches/3.4-RELEASE: . lib/RT
alexmv at bestpractical.com
alexmv at bestpractical.com
Mon Nov 14 18:34:45 EST 2005
Author: alexmv
Date: Mon Nov 14 18:34:44 2005
New Revision: 4096
Modified:
rt/branches/3.4-RELEASE/ (props changed)
rt/branches/3.4-RELEASE/lib/RT/CustomFieldValues.pm
Log:
r7182 at zoq-fot-pik: chmrr | 2005-11-14 18:34:13 -0500
RT-Ticket: 6994
RT-Status: resolved
RT-Update: correspond
* Sort custom vield values by SortOrder, then *Name*, then id; patch
from Troy Davis <troy at nack.net>
Modified: rt/branches/3.4-RELEASE/lib/RT/CustomFieldValues.pm
==============================================================================
--- rt/branches/3.4-RELEASE/lib/RT/CustomFieldValues.pm (original)
+++ rt/branches/3.4-RELEASE/lib/RT/CustomFieldValues.pm Mon Nov 14 18:34:44 2005
@@ -81,17 +81,18 @@
$self->{'table'} = 'CustomFieldValues';
$self->{'primary_key'} = 'id';
-
-
- # By default, order by SortOrder
- $self->OrderByCols(
- { ALIAS => 'main',
- FIELD => 'SortOrder',
- ORDER => 'ASC' },
- { ALIAS => 'main',
- FIELD => 'id',
- ORDER => 'ASC' },
- );
+ # By default, order by SortOrder
+ $self->OrderByCols(
+ { ALIAS => 'main',
+ FIELD => 'SortOrder',
+ ORDER => 'ASC' },
+ { ALIAS => 'main',
+ FIELD => 'Name',
+ ORDER => 'ASC' },
+ { ALIAS => 'main',
+ FIELD => 'id',
+ ORDER => 'ASC' },
+ );
return ( $self->SUPER::_Init(@_) );
}
More information about the Rt-commit
mailing list