[Koha-bugs] [Bug 27898] Make PUT /holds/:hold_id handle x-koha-override for pickup locations

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 28 14:19:37 CEST 2021


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

--- Comment #6 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 120269
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=120269&action=edit
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 at theke.io>

Signed-off-by: Andrew Fuerste-Henry <andrew at bywatersolutions.com>

Signed-off-by: Nick Clemens <nick at bywatersolutions.com>

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


More information about the Koha-bugs mailing list