Bug 26078: Prevent generating a new transfer from return policy when resolving a...
authorNick Clemens <nick@bywatersolutions.com>
Thu, 30 Jul 2020 16:59:14 +0000 (16:59 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 18 Aug 2020 12:38:44 +0000 (14:38 +0200)
commit47671123206a475f86de9316d8b256e14aa54bc1
treeac7fffafefb9feb0f625721ffe32a462e718b44d
parent5bca73080f89bb2f4ca83ce6ceb9fa8e3c4a7d92
Bug 26078: Prevent generating a new transfer from return policy when resolving a transfer

To test:
- Have 2+ branches
- Set your default return policy to Item returns to issuing library
- Find an item with holding branch of Branch A
- Set your library to Branch B
- Check item in
- Koha generates a transfer to Branch A. In doing so, it sets the item holding branch to Branch B
- Set your library to Branch A
- Check item in
- Koha generate a transfer to Branch B. In doing so, it sets the item holding branch to Branch A
- Set you library to Branch A
- Check the item in
 . . . Repeat indefinitely.
 Apply patch
 Repeat
 No more loop

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Circulation.pm
t/db_dependent/Circulation/Branch.t