[Koha-patches] [PATCH] Sort libraries by name in holds queue's select input.
Ryan Higgins
rch at liblime.com
Thu Sep 11 20:17:24 CEST 2008
---
circ/view_holdsqueue.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/circ/view_holdsqueue.pl b/circ/view_holdsqueue.pl
index 739dbe0..a52400b 100755
--- a/circ/view_holdsqueue.pl
+++ b/circ/view_holdsqueue.pl
@@ -65,7 +65,7 @@ if ( $run_report ) {
my $branches = GetBranches;
my $branch = C4::Context->userenv->{"branchname"};
my @branchloop;
-foreach my $thisbranch ( keys %$branches ) {
+foreach my $thisbranch (sort { $branches->{$a}->{branchname} cmp $branches->{$b}->{branchname} } keys %$branches ) {
my $selected = 1 if $thisbranch eq $branch;
my %row = (
value => $thisbranch,
--
1.5.5.GIT
More information about the Koha-patches
mailing list