]> git.koha-community.org Git - koha.git/commit
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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 15 Jan 2018 15:35:29 +0000 (16:35 +0100)
commit47448fdff8709f95f5dd4e3b01c18b040cd81231
tree19210798d9e01650cfee0cb8662499983b695bd3
parentf74fc96595b2e98cbfdb9a93312e9aa4e3a1b38e
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>
(cherry picked from commit 87680805ddb7ebe8dab62cf709ad5e4eebf80726)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Circulation.pm
misc/cronjobs/automatic_renewals.pl
t/db_dependent/Circulation.t