]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 21 Dec 2020 09:07:45 +0000 (10:07 +0100)
commitc913bd7d698a8fbc9992f93db426a35c79f330c7
treebff9e5f079b5e32b27c9da068d08bf30c43bbd57
parent1bfe7ea16ef1346585211345ba89d18e303a0c32
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>
Koha/REST/V1/Holds.pm
t/db_dependent/api/v1/holds.t