Koha-clms/Koha/REST
Tomas Cohen Arazi afd00523a3
Bug 40254: Fix error in overrides check allowing too much
This patch fixes a subtle (yet naive) error making the controller not
care about blocking conditions if they were more than one and the first
one was overridden.

To test:
1. Apply the regression tests
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/api/v1/holds.t
=> FAIL: Tests fail! Some tests expect a 409 (denied for a conflict) but
return a 201!
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D

Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-06-30 08:30:45 -06:00
..
Plugin Bug 39325: Automatic fix 2025-04-28 18:51:22 +02:00
V1 Bug 40254: Fix error in overrides check allowing too much 2025-06-30 08:30:45 -06:00
V1.pm Bug 37286: Fix REST API authentication when using Mojo apps 2025-03-17 08:21:23 +01:00