Bug 28202: Pickup libraries must be sorted by name when placing hold
authorFridolin Somers <fridolin.somers@biblibre.com>
Fri, 23 Apr 2021 09:10:15 +0000 (11:10 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 28 Apr 2021 09:16:14 +0000 (11:16 +0200)
commit4a6dd5f82da1f45456b953421e699abc179a6fb9
tree7bb4cd8899fc0991400aa0ebf878b3b732e98c0d
parent061c4c3f115cd15c669edbbdc6f4d54a9db850a0
Bug 28202: Pickup libraries must be sorted by name when placing hold

When placing hold, the pickup libraries are not sorted by name but by code.

You can see in other places : pickup_locations() calls
Koha::Libraries->search with { order_by => ['branchname'] }

Test plan :
1) Go to staff interface
2) Create a new libary with code 'AAA' and name 'ZZZ'.
2) Select a record
3) Begin placing hold
4) Look at list in "Pickup at:"
=> Without patch library 'ZZZ' is first
=> With patch library 'ZZZ' is last

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Biblio.pm