Bug 8864 - AutoUnsuspendReserves date check incorrect
Summary: AutoUnsuspendReserves date check incorrect
Status: RESOLVED DUPLICATE of bug 21075
Alias: None
Product: Koha
Classification: Unclassified
Component: Hold requests (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-02 15:11 UTC by Elliott Davis
Modified: 2019-02-04 23:58 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***