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)
committerMason James <mtj@kohaaloha.com>
Wed, 22 Feb 2017 08:57:36 +0000 (21:57 +1300)
commitd222c3eee7a6a4e52ccb56fa1bf43e4c007f6265
tree0cd8edaffdb422d26bbc5d84866bef95b17e982c
parent3fc942a518f35bfe406dcae3757ce8c70cf4c3c6
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>
C4/Circulation.pm
t/db_dependent/Circulation/TooMany.t