]> git.koha-community.org Git - koha.git/commit
Bug 31086: Throw an exception when a hold is stored with no branchcode
authorNick Clemens <nick@bywatersolutions.com>
Fri, 1 Jul 2022 14:44:09 +0000 (14:44 +0000)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Mon, 12 Sep 2022 11:52:25 +0000 (13:52 +0200)
commit67513c6562b476b6ab0e218752c8bf4c145bb01f
treea70fbeb74ee47ace59942e0e8aa52c6edb11a600
parent084c14787f751e8aabee7db6f701c5d4c71cf497
Bug 31086: Throw an exception when a hold is stored with no branchcode

To test:
1 - Apply first 2 patches
2 - On staff client, find a biblio, place hold, select a patron
3 - Before creating hold, right click on 'Pickup location'
4 - Inspect the element
5 - In the console find the top <li> for pickup, and right click
6 - Select 'Delete node'
7 - Save hold
8 - You get an exception/error

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit e7d886d388dc9825c6e93a158e19f7da60db145b)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit e03b542a18d20f00211721e3c2f200d7fc00c664)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
Koha/Exceptions/Hold.pm
Koha/Hold.pm