[open-ils-commits] r18991 - branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Circ (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Dec 13 12:45:57 EST 2010
Author: miker
Date: 2010-12-13 12:45:54 -0500 (Mon, 13 Dec 2010)
New Revision: 18991
Modified:
branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm
Log:
Backport of r18989: boolean test for hard due force flag
Modified: branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm
===================================================================
--- branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm 2010-12-13 17:44:51 UTC (rev 18990)
+++ branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm 2010-12-13 17:45:54 UTC (rev 18991)
@@ -1935,7 +1935,7 @@
if($date_ceiling) {
my $cdate = DateTime::Format::ISO8601->new->parse_datetime(cleanse_ISO8601($date_ceiling));
- if ($cdate > DateTime->now and ($cdate < $due_date or $force_date)) {
+ if ($cdate > DateTime->now and ($cdate < $due_date or $U->is_true( $force_date ))) {
$logger->info("circulator: overriding due date with date ceiling: $date_ceiling");
$due_date = $cdate;
}
More information about the open-ils-commits
mailing list