[open-ils-commits] r12404 - trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Mar 4 16:18:18 EST 2009
Author: erickson
Date: 2009-03-04 16:18:14 -0500 (Wed, 04 Mar 2009)
New Revision: 12404
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger/Validator.pm
Log:
logic error on due_date check
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger/Validator.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger/Validator.pm 2009-03-04 21:17:37 UTC (rev 12403)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger/Validator.pm 2009-03-04 21:18:14 UTC (rev 12404)
@@ -24,7 +24,7 @@
return 0 if $circ->stop_fines and not $circ->stop_fines =~ /MAXFINES|LONGOVERDUE/;
my $due_date = DateTime::Format::ISO8601->new->parse_datetime(clense_ISO8601($circ->due_date));
- return 0 if $due_date < DateTime->now;
+ return 0 if $due_date > DateTime->now;
return 1;
}
More information about the open-ils-commits
mailing list