From 5eb8792fc399c4804c6ffd9235f4aa76793811d7 Mon Sep 17 00:00:00 2001 From: Sophie Meynieux Date: Fri, 12 Aug 2011 16:04:13 +0200 Subject: [PATCH] [SIGNED-OFF] Bug 6292 followup Content-Type: text/plain; charset="utf-8" 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 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