From 86374160850b66cb65f8e8187f11782d014f05db Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 13 Dec 2010 17:38:46 +0000 Subject: [PATCH] boolean test for hard due force flag git-svn-id: svn://svn.open-ils.org/ILS/trunk@18989 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm index 24a3bd7f50..f5f2d53ccf 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm @@ -2088,7 +2088,7 @@ sub create_due_date { 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; } -- 2.11.0