]> 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)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 20 Jan 2017 13:41:59 +0000 (13:41 +0000)
commit11dfb2e0b2d32c313f556b623ee8522b4342af26
treec57720b5710c2de629d96252e3d9f64ce2dad485
parent743dbe3e6423f51ae93477ef58a9d696661bf2cd
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>
C4/Circulation.pm
t/db_dependent/Circulation/TooMany.t