]> git.koha-community.org Git - koha.git/commit
Bug 8361: Do not allow checkouts if no rules are defined
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 22 Nov 2016 11:23:23 +0000 (11:23 +0000)
committerJulian Maurice <julian.maurice@biblibre.com>
Thu, 9 Feb 2017 08:36:09 +0000 (09:36 +0100)
commit809b0a28b7b2e9c76fad671fa1ed82cf45d7ed97
tree86065b0e3963b1d70822b9ff5c090ff8510f0540
parentbd3188a2b38afdd51af6ca16f0955f5bd7cfe61d
Bug 8361: Do not allow checkouts if no rules are defined

We should require a circulation rule to allow checkouts and reject them
if no rules are defined.

Test plan:
- Delete all issuing rules
- Check an item out
=> Without this patch the checkout is allowed
=> With this patch applied it is rejected

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 11dfb2e0b2d32c313f556b623ee8522b4342af26)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
(cherry picked from commit 32c8bf4a3dbcd1b15de5221589c974ef78b6b1e6)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
C4/Circulation.pm
t/db_dependent/Circulation/TooMany.t