[Rt-commit] [svn] r1810 - in rt/branches/PLATANO-EXPERIMENTAL-CSS:
. html/Elements
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Thu Nov 11 03:15:47 EST 2004
Author: jesse
Date: Thu Nov 11 03:15:47 2004
New Revision: 1810
Modified:
rt/branches/PLATANO-EXPERIMENTAL-CSS/ (props changed)
rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Elements/SelectOwner
Log:
r9072 at tinbook: jesse | 2004-11-11T02:54:55.160063Z
r6044 at tinbook: jesse | 2004-10-19T05:18:31.025176Z
RT-Ticket: 6154
RT-Status: resolved
RT-Update: reply
Owner listings now sort alphabetically
Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Elements/SelectOwner
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Elements/SelectOwner (original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Elements/SelectOwner Thu Nov 11 03:15:47 2004
@@ -48,7 +48,7 @@
<OPTION <% !$Default && "SELECTED" %> VALUE=""><%$DefaultLabel%></OPTION>
%}
<OPTION <% ($RT::Nobody->Id() == $Default) && "SELECTED" %> VALUE="<%$RT::Nobody->Id%>"><%$RT::Nobody->Name%></OPTION>
-%foreach my $User (@users) {
+%foreach my $User ( @users) {
<OPTION <% ($User->Id == $Default) && "SELECTED" %> VALUE="<%$User->Id()%>"><%$User->Name()%></OPTION>
%}
</SELECT>
@@ -85,8 +85,7 @@
$user_uniq_hash{$User->Id()} = $User;
}
}
-
- at users = values %user_uniq_hash;
+ at users = sort { uc($a->Name) cmp uc($b->Name) } values %user_uniq_hash;
</%INIT>
<%ARGS>
More information about the Rt-commit
mailing list