Bug 8864

Summary: AutoUnsuspendReserves date check incorrect
Product: Koha Reporter: Elliott Davis <elliott>
Component: Hold requestsAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P5 - low CC: george, gmcharlt
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21765
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Elliott Davis 2012-10-02 15:11:41 UTC
AutoUnsuspendReserves should compare the suspend_until field as <= rather than <
Comment 1 Katrin Fischer 2019-02-04 23:58:13 UTC
This has been fixed:
 868 sub AutoUnsuspendReserves {
 869     my $today = dt_from_string();
 870 
 871     my @holds = Koha::Holds->search( { suspend_until => { '<=' => $today->ymd() } } );
 872 
 873     map { $_->suspend(0)->suspend_until(undef)->store() } @holds;
 874 }

*** This bug has been marked as a duplicate of bug 21075 ***