From 0ce35bcf2171e1d8bca4ad270eb019dd5f592458 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 8 Jan 2009 14:18:24 -0600 Subject: [PATCH] followup to patch for bug 2900 Previous patch broke date comparison that sets overdue flag - now that ISO-formatted date strings are being compared, must use "it" instead of "<". "2009-01-02" lt "2009-01-08" is true "2009-01-02" < "2009-01-08" is *false* Signed-off-by: Galen Charlton --- C4/Members.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Members.pm b/C4/Members.pm index 42b9d2a81d..27672dcfaf 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -1045,7 +1045,7 @@ sub GetPendingIssues { my $today = C4::Dates->new->output('iso'); foreach (@$data) { $_->{date_due} or next; - ($_->{date_due} < $today) and $_->{overdue} = 1; + ($_->{date_due} lt $today) and $_->{overdue} = 1; } return $data; } -- 2.39.5