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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 30 Apr 2021 12:13:43 +0000 (14:13 +0200)
commitebe12231a4d1a3ec56b44b1929c122f4afcdba1b
tree07f07631636bf178e9d2cff0eb69bbba5bdd4669
parentf478695215f19d3fbb6aee05a2be6f957314a3ea
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>
(cherry picked from commit 4a6dd5f82da1f45456b953421e699abc179a6fb9)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Biblio.pm