Bug 27281: Update LostItem to use Koha::Item[::Transfer] methods
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 8 Mar 2021 13:43:11 +0000 (13:43 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 23 Apr 2021 09:58:49 +0000 (11:58 +0200)
commit115ed5eb5bb3c7d9eae9d3b2e455cbf4f1aabee3
tree69054fd19e64500ea53235c4a22cb7ca003c0583
parentbb3c38f4c401be51fada5ed7f03c2c6d27aa5d07
Bug 27281: Update LostItem to use Koha::Item[::Transfer] methods

This patch updates C4::Circulation::LostItem to use the Koha::Item and
Koha::Item::Transfer methods to cancel transfers when an item is marked
as lost.

Test plan
1/ Confirm t/db_dependant/Circulation.t passes prior to applying the
patches
2/ Apply the patch and run updatedatabase.pl
3/ Confirm that t/db_dependant/Circulation.t still passes
4/ Signoff

Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Circulation.pm
Koha/Item.pm
Koha/Schema/Result/Branchtransfer.pm
installer/data/mysql/atomicupdate/bug_27281.perl [new file with mode: 0644]
installer/data/mysql/kohastructure.sql