[Koha-patches] [PATCH] Bug 2553: Fixes the location drop-down alphabetization for the catalog statistics report form.
Garry Collum
gcollum at gmail.com
Sat Jul 18 01:08:15 CEST 2009
---
reports/catalogue_stats.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/reports/catalogue_stats.pl b/reports/catalogue_stats.pl
index 34b649f..365065f 100755
--- a/reports/catalogue_stats.pl
+++ b/reports/catalogue_stats.pl
@@ -156,7 +156,7 @@ if ($do_it) {
my $branches=GetBranches();
my @branchloop;
- foreach (keys %$branches) {
+ foreach (sort {$branches->{$a}->{'branchname'} cmp $branches->{$b}->{'branchname'}} keys %$branches) {
my $thisbranch = ''; # FIXME: populate $thisbranch to preselect one
my %row = (branchcode => $_,
selected => ($thisbranch eq $_ ? 1 : 0),
--
1.5.6.5
More information about the Koha-patches
mailing list