summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-user.html
diff options
context:
space:
mode:
authorivan <ivan>2010-08-15 07:00:21 +0000
committerivan <ivan>2010-08-15 07:00:21 +0000
commit55476aa0484f5ebada5f36e1407722d84609bd34 (patch)
tree56509008c166ace467f2ac2ef8688ac2afcfe6b9 /httemplate/elements/select-user.html
parent80f722b82cb92fa49ee172230be3c61f72e56f41 (diff)
additional by-otaker searches fixed for the brave new world of usernum, RT#9555
Diffstat (limited to 'httemplate/elements/select-user.html')
-rw-r--r--httemplate/elements/select-user.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/httemplate/elements/select-user.html b/httemplate/elements/select-user.html
index 6264398e2..ec2341be6 100644
--- a/httemplate/elements/select-user.html
+++ b/httemplate/elements/select-user.html
@@ -4,7 +4,10 @@
<OPTION VALUE="">all</OPTION>
% }
-% foreach my $usernum ( keys %{ $opt{'access_user'} } ) {
+% foreach my $usernum (
+% sort { $opt{'access_user'}->{$a} cmp $opt{'access_user'}->{$b} }
+% keys %{ $opt{'access_user'} }
+% ) {
<OPTION VALUE="<%$usernum%>"><% $opt{'access_user'}->{$usernum} %></OPTION>
% }
@@ -16,12 +19,9 @@ my %opt = @_;
unless ( $opt{'access_user'} ) {
- tie %{ $opt{'access_user'} }, 'Tie::IxHash';
-
my $sth = dbh->prepare("
SELECT usernum, username FROM access_user
WHERE disabled = '' or disabled IS NULL
- ORDER BY username
") or die dbh->errstr;
$sth->execute or die $sth->errstr;
while ( my $row = $sth->fetchrow_arrayref ) {