[Koha-bugs] [Bug 12362] Branch transfer records orphaned on cancelled holds

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 20 11:40:06 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12362

--- Comment #15 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 119898
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=119898&action=edit
Bug 12362: (QA follow-up) Fix ModItemTransfer cancellation handling

ModItemTransfer is still used, sparingly. It force cancels transfers
regardles of whether they are already marked as in_transit. We do not,
however, want to enqueue a return transfer in this case as
ModItemTransfer is itself an enqueue function.  This patch updates the
internal logic of ModItemTransfer to enqueue the passed transfer prior
to cancelling the pre-existing one.. in this way the result is one
cancelled transfer and one new transfer and not three transfers.

Test plan
1/ Run t/db_dependant/Items.t and verify it fails prior to applying this
patch
2/ Apply patch and run the test again, verifying it now passes.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list