[Koha-patches] [PATCH] followup to patch for bug 2900

Galen Charlton galen.charlton at liblime.com
Thu Jan 8 21:18:37 CET 2009


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*
---
 C4/Members.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Members.pm b/C4/Members.pm
index 9a86e71..8467813 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;
 }
-- 
1.5.5.GIT




More information about the Koha-patches mailing list