]> git.koha-community.org Git - koha.git/commit
Bug 27064: (QA follow-up) Pass 'replace' through to Koha::Item::Transfer->cancel
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 6 May 2021 15:31:39 +0000 (16:31 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 18 Jun 2021 11:11:51 +0000 (07:11 -0400)
commit6c1b7df3f62b9b9e07f0a65d3ca99817086b4c01
tree1aaeffc6a4941473b59a010fd4b9e704f7bb97c3
parent8b095aaf37513ed633d8333dea2eb685c040d08a
Bug 27064: (QA follow-up) Pass 'replace' through to Koha::Item::Transfer->cancel

The `replace` option found in Koha::Item->request_transfer should be
passed through to Koha::Item::Transfer->cancel and prevent any reverse
transfers from being queued in such cases.

This prevents modItemTransfer from adding superflous reverse transfers
whenever it is used.

Test plan
1/ Run t/db_dependent/Koha/Item.t to prove the new tests pass

Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Item.pm
Koha/Item/Transfer.pm
t/db_dependent/Koha/Item.t