Bug 7815 : Order pickup libraries list by name rather than by code
Signed-off-by: Marijana Glavica <mglavica@ffzg.hr>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 317479ff43)
This commit is contained in:
parent
e975e6ee73
commit
bf74135b6e
|
|
@ -68,7 +68,7 @@ my $default = C4::Context->userenv->{branch};
|
|||
my @values;
|
||||
my %label_of;
|
||||
|
||||
foreach my $branchcode (sort keys %{$branches} ) {
|
||||
foreach my $branchcode ( sort { $branches->{$a}->{branchname} cmp $branches->{$b}->{branchname} } keys %$branches ) {
|
||||
push @values, $branchcode;
|
||||
$label_of{$branchcode} = $branches->{$branchcode}->{branchname};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue