[Koha-bugs] [Bug 27863] Add a way to override constraints on pickup_libraries route if 'AllowHoldPolicyOverride' is enabled

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 4 18:56:17 CET 2021


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

--- Comment #3 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 117758
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=117758&action=edit
Bug 27863: Add a way to override pickup locations constraints

If AllowHoldPolicyOverride is set, staff members are able to choose any
branch marked as pickup location for a hold. The route for retrieving
the valid pickup locations should provide a way to request the override.

This patch does that, based on work from bug 27760. A new parameter is
added: an x-koha-override header, with the value of 'any' that will
force the override if the syspref is enabled.

To test:
1. Apply this patches
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/holds.t
=> SUCCESS: Tests pass!
3. Sign off :-D

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


More information about the Koha-bugs mailing list