Bug 28254: Add 'override' parameter to Koha::Hold->set_pickup_location
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 28 Apr 2021 17:37:12 +0000 (14:37 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 4 May 2021 12:22:08 +0000 (14:22 +0200)
commitde25586ba0c89ac2f843f772114b8297066e2d88
tree6f52fcdb7d6bf9c6bb8718bd74ee6315e36ebf30
parentede8290c5d8677d83b5fa70e9ff3afc061ea3924
Bug 28254: Add 'override' parameter to Koha::Hold->set_pickup_location

This patch adds a new parameter to the method. If passed+true it makes
the method skip the pickup validation test.

Tests and POD added for this change.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Hold.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Hold.pm
t/db_dependent/Koha/Hold.t