]> git.koha-community.org Git - koha.git/commit
Bug 27209: Add Koha::Hold->set_pickup_location
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 11 Dec 2020 19:51:42 +0000 (16:51 -0300)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Mon, 28 Dec 2020 14:56:37 +0000 (14:56 +0000)
commitae79128f76087503e9f22cafec2cec6c2b9616c7
treef2a3a7ff96bfaf64050d92ce9063408654f43d06
parent61df2e78980e45d0530a43531bfc0e976838fdd1
Bug 27209: Add Koha::Hold->set_pickup_location

This patch introduces a method to safely update a hold's pickup
location. It will raise exceptionis if the passed parameters are invalid
or absent.

To test:
1. Apply this patches
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Hold.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: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 672413ea294679d4b5b30d30839650f6d30b45ca)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 18578794d9e5ac3c5e5c0548989224149bccae60)
Koha/Exceptions/Hold.pm
Koha/Hold.pm