From: Sophie Meynieux <sophie.meyni...@biblibre.com> selection of items to be listed in an overdue notice included both limits (upper and lower). So items with an overdue equal to a limit appeared on both notices. This patch fix this, including lower limit and excluding upper limit for the selection.
Signed-off-by: Katrin Fischer <katrin.fischer...@web.de> --- misc/cronjobs/overdue_notices.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl index 9e5f953..d6a687a 100755 --- a/misc/cronjobs/overdue_notices.pl +++ b/misc/cronjobs/overdue_notices.pl @@ -409,7 +409,7 @@ END_SQL my $mindays = $overdue_rules->{"delay$i"}; # the notice will be sent after mindays days (grace period) my $maxdays = ( $overdue_rules->{ "delay" . ( $i + 1 ) } - ? $overdue_rules->{ "delay" . ( $i + 1 ) } + ? $overdue_rules->{ "delay" . ( $i + 1 ) } - 1 : ($MAX) ); # issues being more than maxdays late are managed somewhere else. (borrower probably suspended) -- 1.7.4.1 _______________________________________________ Koha-patches mailing list Koha-patches@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/