[Koha-bugs] [Bug 27797] Make POST /holds use the stashed koha.overrides

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 28 20:59:46 CEST 2021


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

--- Comment #26 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 120290
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=120290&action=edit
Bug 27797: (QA follow-up) Pickup locations can be overridden too

This patch adds regression tests for overridding pickup locations, which
was inadvertedly not covered by the original dev. What this does, is
moving the $can_override variable definition above, and avoid returning
400 if conditions are not met for the passed pickup_library_id, when
$can_override is true.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/holds.t
=> SUCCESS: Tests pass!

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

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


More information about the Koha-bugs mailing list