]> 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)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Mon, 28 Dec 2020 15:03:21 +0000 (15:03 +0000)
commitcb81207abd34f96f6dc8a4ade001989d3ce557e2
treeb80fe396ab9df942ad4112fb2eab3c06ef34cd70
parent83ffb4ae67e54196c4dca56dad2f4bd658642d1a
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>
(cherry picked from commit 0df97c37d8c7a6989a118187d8867a52fb3bb608)
Koha/REST/V1/Holds.pm
t/db_dependent/api/v1/holds.t