[Koha-bugs] [Bug 32563] Reservedate becomes expirationdate in some cases

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 19 12:32:43 CEST 2023


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

--- Comment #5 from Emmi Takkinen <emmi.takkinen at koha-suomi.fi> ---
Created attachment 149857
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=149857&action=edit
Bug 32563: Cloning $self->reservedate leads to error 500

If DefaultHoldExpirationdate is set and I trap a hold and revert the hold's
waiting
status and then try to cancel the hold, I get an error.

To test:
1. Go to
/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=DefaultHoldExpirationdate
2. Setup default expiration date to be 1 year from reserve date for example.
3. Switch to catalog to any biblio with item for example
/cgi-bin/koha/catalogue/detail.pl?biblionumber=1 and place a hold for any
borrower.
4. Check in an item from the biblio you reserved and your hold gets trapped.
5. Go to the biblio and to it's holds page and revert the waiting status of
your hold.
6. Notice that expiration date is empty.
7. Cancel the hold and get an error.
8. Apply this patch.
9. Repeat step above, but now no error should be raised.

Also prove prove t/db_dependent/Hold.t

Sponsored-by: Koha-Suomi Oy

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


More information about the Koha-bugs mailing list