]> 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)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Mon, 28 Dec 2020 15:03:58 +0000 (15:03 +0000)
commitd93b7fe791e94153aac5b128c428f5db95f5f723
treefb04cf45cc2f0689ef01340473b36386a306da40
parentcb81207abd34f96f6dc8a4ade001989d3ce557e2
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>
(cherry picked from commit 01bd125f1fbbf8d54870baf80fcfaacc105c44e0)
Koha/REST/V1/Holds.pm
t/db_dependent/api/v1/holds.t