]> git.koha-community.org Git - koha.git/commit
Bug 27205: Check valid pickup location on POST /holds
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 14 Dec 2020 13:19:05 +0000 (10:19 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 28 Dec 2020 13:43:59 +0000 (14:43 +0100)
commit01bd125f1fbbf8d54870baf80fcfaacc105c44e0
tree9a9e7256b2b1d61162cf1d330c793ae15054581d
parent0df97c37d8c7a6989a118187d8867a52fb3bb608
Bug 27205: Check valid pickup location on POST /holds

This patch adds a check for valid pickup location to the POST /holds
route. A 400 code is returned if the supplied pickup library is not
valid.

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

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit c913bd7d698a8fbc9992f93db426a35c79f330c7)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/REST/V1/Holds.pm
t/db_dependent/api/v1/holds.t