From d1296ac394358ca24e24d19a99426da082041e01 Mon Sep 17 00:00:00 2001 From: Sophie Meynieux Date: Fri, 12 Aug 2011 16:04:13 +0200 Subject: [PATCH] Bug 6292 followup 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 (cherry picked from commit d86d62adba7f898db26dc58e909f2b91db3248b0) Signed-off-by: Chris Nighswonger (cherry picked from commit 7d9ca3f1e450f75f6f85ee80f09d22089c82a87b) Signed-off-by: Chris Nighswonger --- misc/cronjobs/overdue_notices.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl index 1d879d9031..09d633df72 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) -- 2.39.5