[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
Tue Jun 23 19:41:42 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25662
--- Comment #7 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 106213
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=106213&action=edit
[19.11.x] 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>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list