]> git.koha-community.org Git - koha.git/commit
Bug 27898: Make PUT /holds/:hold_id accept overrides
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 8 Mar 2021 16:05:34 +0000 (13:05 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 4 May 2021 12:22:04 +0000 (14:22 +0200)
commitede8290c5d8677d83b5fa70e9ff3afc061ea3924
tree78576c58d03ea9a5f2ca7e1f39b9f44fc926359d
parent542db8c440637a3df11ce95940cdc8aeb25e428d
Bug 27898: Make PUT /holds/:hold_id accept overrides

This patch makes the route handle overriding pickup locations by passing
the 'x-koha-override' header (set to 'any').

To test:
1. Apply the unit tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/holds.t
=> FAIL: Tests fail, because things cannot be overridden ATM.
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: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/REST/V1/Holds.pm