[Koha-bugs] [Bug 29562] CanItemBeReserved should take patron and item objects as parameters

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 7 21:14:40 CET 2022


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

Tomás Cohen Arazi <tomascohen at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tomascohen at gmail.com

--- Comment #2 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
I love this, but breaks the API and I couldn't easily find why.

To reproduce the failure:
1. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/holds.t
=> FAIL: Tests fail with a 500.

What I found using Postman:
- $biblio_id is not always defined in the call to AddReserve, should be using
$biblio->id instead
- This were the first tests we wrote for the API, and are super weird,
including the DELETE FROM reserves. Maybe is a problem with the tests
themselves.

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


More information about the Koha-bugs mailing list