[Koha-bugs] [Bug 25662] Create hold route does not check maxreserves syspref

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 25 16:34:00 CEST 2020


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

--- Comment #10 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 106298
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=106298&action=edit
Bug 25662: Make the route for holds restpect maxreserves

This patch fixes the behaviour for the POST /holds route. It assumed
maxreserves was checked in CanItemBeReserved which is not the case.

Tests are added to check for this behaviour.

To test:
1. Apply the regression tests
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/holds.t
=> FAIL: Tests fail!
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

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


More information about the Koha-bugs mailing list