]> 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)
committerKatrin Fischer <katrin.fischer.83@web.de>
Tue, 7 Feb 2017 06:49:13 +0000 (07:49 +0100)
commit32c8bf4a3dbcd1b15de5221589c974ef78b6b1e6
treece6a410a2f7ef44e65bc89ec818619080ae06471
parent36685a439a438dd12bd12e65287cc3f0c1b6c198
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