[Rt-commit] [svn] r1661 - in rt/branches/3.3-TESTING: .
html/Elements
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Tue Oct 19 01:17:39 EDT 2004
Author: jesse
Date: Tue Oct 19 01:17:39 2004
New Revision: 1661
Modified:
rt/branches/3.3-TESTING/ (props changed)
rt/branches/3.3-TESTING/html/Elements/SelectOwner
Log:
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/3.3-TESTING/html/Elements/SelectOwner
==============================================================================
--- rt/branches/3.3-TESTING/html/Elements/SelectOwner (original)
+++ rt/branches/3.3-TESTING/html/Elements/SelectOwner Tue Oct 19 01:17:39 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