]> git.koha-community.org Git - koha.git/commit
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)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Tue, 25 May 2021 11:03:05 +0000 (11:03 +0000)
commit3dfa6ed84074d013c4f27de7af424df619af966a
tree48fcf7082e6c808b9e6069759422c79d8552534e
parent048d6984e5ce7a2a629bb961b6c985da8b597636
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>
(cherry picked from commit ebe12231a4d1a3ec56b44b1929c122f4afcdba1b)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Koha/Biblio.pm