From: erickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Tue, 27 Oct 2009 12:26:04 +0000 (+0000)
Subject: canceled holds, when they exist, happened in the past, not the future
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=adab7e9e91a6965336e77a75c69fd9e8e9da2189;p=evergreen%2Fmasslnc.git

canceled holds, when they exist, happened in the past, not the future

git-svn-id: svn://svn.open-ils.org/ILS/trunk@14626 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm
index 2152b5c541..5d06083a1b 100644
--- a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm
+++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm
@@ -367,7 +367,7 @@ sub retrieve_holds {
     } elsif($cancel_age) {
 
         # find all of the canceled holds that were canceled within the configured time frame
-        my $date = DateTime->now->add(seconds => OpenSRF::Utils::interval_to_seconds($cancel_age));
+        my $date = DateTime->now->subtract(seconds => OpenSRF::Utils::interval_to_seconds($cancel_age));
         $date = $U->epoch2ISO8601($date->epoch);
 
         my $canceled = $e->search_action_hold_request([