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)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 10 Jan 2018 12:24:51 +0000 (12:24 +0000)
commit87680805ddb7ebe8dab62cf709ad5e4eebf80726
tree4de252cc90aa86c812e40ef4dee087166915ff9e
parentd5fde992ef04faaa7bd3d32aec57cb76cc4672c7
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>
Conflicts:
t/db_dependent/Circulation.t

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
C4/Circulation.pm
misc/cronjobs/automatic_renewals.pl
t/db_dependent/Circulation.t