]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 2 Sep 2022 17:07:18 +0000 (17:07 +0000)
commite03b542a18d20f00211721e3c2f200d7fc00c664
tree87063cdfdb7e17a905d3ce45d6d0832787192b04
parent4c2928f8f08d1b97027f0aae32197992d2584c2a
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>
Koha/Exceptions/Hold.pm
Koha/Hold.pm