From d86d62adba7f898db26dc58e909f2b91db3248b0 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 --- 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 6e723b20e6..fa13c59236 100755 --- a/misc/cronjobs/overdue_notices.pl +++ b/misc/cronjobs/overdue_notices.pl @@ -410,7 +410,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