| Summary: | AutoUnsuspendReserves date check incorrect | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Elliott Davis <elliott> |
| Component: | Hold requests | Assignee: | 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 | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Crowdfunding goal: | 0 |
| 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
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 ***
|