Koha-clms/Koha/REST
Tomas Cohen Arazi 3fac75b079 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@theke.io>

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

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 69bdc94cd4)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2020-09-04 20:10:31 +00:00
..
Plugin Bug 26143: Make the API handle per_page=-1 2020-08-13 18:12:12 +00:00
V1 Bug 25662: Make the route for holds restpect maxreserves 2020-09-04 20:10:31 +00:00
V1.pm Bug 25493: Make ->unhandled_exception use Koha::Logger 2020-05-19 15:20:43 +01:00