Bug 13950: Sort Item search home library list by branch name
On the item search form the list of home libraries isn't sorted
alphabetically by their descrption.
To test:
- Ensure that you have libraries whose code/name are sorted in a different alphabetical order (e.g. Aardvark/ZZZ & Zebra/AAA)
- Staff: Advanced search - item search
- See that libraries are sorted in code order
- Apply patch
- Verify selection block for home library is correctly sorted after
applying the patch.
Signed-off-by: Indranil Das Gupta (L2C2 Technologies) <indradg@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 958be9804a)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
e67d0dd602
commit
9c2c171f98
|
|
@ -242,7 +242,7 @@ if ($format eq 'html') {
|
|||
|
||||
my $branches = GetBranches();
|
||||
my @branches;
|
||||
foreach my $branchcode (keys %$branches) {
|
||||
foreach my $branchcode ( sort { uc($branches->{$a}->{branchname}) cmp uc($branches->{$b}->{branchname}) } keys %$branches) {
|
||||
push @branches, {
|
||||
value => $branchcode,
|
||||
label => $branches->{$branchcode}->{branchname},
|
||||
|
|
|
|||
Loading…
Reference in New Issue