Bugzilla – Attachment 725 Details for
Bug 2553
alphabetize dropdown menus
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for drop-down lists in Circulation Statistics Wizard
0013-Bug-2553-Fixes-drop-down-alphabetization-for-Circul.patch (text/plain), 1.47 KB, created by
Chris Cormack
on 2009-07-17 23:25:00 UTC
(
hide
)
Description:
Patch for drop-down lists in Circulation Statistics Wizard
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2009-07-17 23:25:00 UTC
Size:
1.47 KB
patch
obsolete
>From eba0553805d8b92008df78d01bbf9672739ea091 Mon Sep 17 00:00:00 2001 >From: Garry Collum <gcollum@gmail.com> >Date: Fri, 17 Jul 2009 19:27:51 -0400 >Subject: [PATCH] Bug 2553: Fixes drop-down alphabetization for Circulation Statistics report form. >Content-Type: text/plain; charset="utf-8" > >Fixes alphabetization for the item type, library and collection drop-down lists in the Checkout Statistics wizard form. >--- > reports/issues_stats.pl | 6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/reports/issues_stats.pl b/reports/issues_stats.pl >index 63ea68e..11ecc77 100755 >--- a/reports/issues_stats.pl >+++ b/reports/issues_stats.pl >@@ -133,13 +133,13 @@ my %select; > > # create itemtype arrayref for <select>. > my @itemtypeloop; >-for my $itype ( keys(%$itemtypes)) { >+for my $itype ( sort {$itemtypes->{$a}->{description} cmp $itemtypes->{$b}->{description}} keys(%$itemtypes)) { > push @itemtypeloop, { code => $itype , description => $itemtypes->{$itype}->{description} } ; > } > > my $branches=GetBranches(); > my @branchloop; >-foreach (keys %$branches) { >+foreach (sort {$branches->{$a}->{'branchname'} cmp $branches->{$b}->{'branchname'}} keys %$branches) { > my $thisbranch = ''; # FIXME > my %row = ( > branchcode => $_, >@@ -157,7 +157,7 @@ foreach (sort keys %$locations) { > } > > my @ccodes; >-foreach (keys %$ccodes) { >+foreach (sort {$ccodes->{$a} cmp $ccodes->{$b}} keys %$ccodes) { > push @ccodes, { code => $_, description => $ccodes->{$_} }; > } > >-- >1.5.6.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 2553
:
721
|
722
|
723
|
724
|
725
|
726
|
727
|
728
|
729
|
730
|
731
|
732
|
733
|
11788
|
11789