From 3a7ae974409d13e6f3a426f791a191aaf6e9bd7c 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 9a86e71bce..8467813cf4 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.20.1