Bug 19444: Do not auto renew if patron is expired and BlockExpiredPatronOpacActions...
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 25 Oct 2017 19:51:28 +0000 (16:51 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 18 Dec 2017 15:16:26 +0000 (12:16 -0300)
commita8f4aacb1db5820b530b2b1dc4072df624f9f1f5
tree77a6d69d9fda9b12727ace6341353e5a1635080c
parentdcc2c5e2d93945e35a7138a832f81bc8178c523d
Bug 19444: Do not auto renew if patron is expired and BlockExpiredPatronOpacActions is set

If the patron's account has expired and BlockExpiredPatronOpacActions is set,
we expect auto renewal to be rejected.

Test plan:
Use the automatic_renewals.pl cronjob script to auto renew a checkout

Before this patch, if the patron's account has expired the auto renew was done.
With this patch, it will only be auto renewed if BlockExpiredPatronOpacActions is not set.

Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Circulation.pm
misc/cronjobs/automatic_renewals.pl
t/db_dependent/Circulation.t