[Koha-bugs] [Bug 35559] Can't change the pickup date of holds on the last day of expiration

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 13 16:10:26 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35559

--- Comment #1 from Peter Vashchuk <stalkernoid at gmail.com> ---
Created attachment 159807
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=159807&action=edit
Bug 35559 - Allow the change of expiration date on the last day of expiration

The result of this comparison will almost never be 0 as it requires the dates
to be same down to a second:
DateTime->compare( dt_from_string( $res->expirationdate ), dt_from_string() )
== -1
This patch fixes it.

To reproduce:
1) Create or use existing hold that is awaiting pickup.
2) Set it's expiration date to today. (if you can't do it through koha
interface, edit it in the database or wait for tomorrow to come)
3) Check that you can't change the expiration date anymore as it says "Expired:
%date%"
4) Apply the patch
5) Check that you can change the expiration date

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list