]> git.koha-community.org Git - koha.git/commit
Bug 27205: Check valid pickup location on PUT /holds/:hold_id
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 11 Dec 2020 20:55:40 +0000 (17:55 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 28 Dec 2020 13:43:11 +0000 (14:43 +0100)
commit0df97c37d8c7a6989a118187d8867a52fb3bb608
tree33932b4f81d487bda0e4050cd163a17f7aac6921
parent02df63c430df50d0d6985be23c4e5a98142b8a30
Bug 27205: Check valid pickup location on PUT /holds/:hold_id

This patch adds a test for valid pickup locations when updating a hold
through the API.

Tests are adjusted to reflect this change.

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: Tomas Cohen Arazi <tomascohen@theke.io>
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 1bfe7ea16ef1346585211345ba89d18e303a0c32)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/REST/V1/Holds.pm
t/db_dependent/api/v1/holds.t