]> git.koha-community.org Git - koha.git/commit
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)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 3 Sep 2020 14:38:21 +0000 (14:38 +0000)
commit8bd9c4b4fd44990c7a806de21e8628e1955a3c56
tree7049581fc48a03d2aa08c9d057aa7666363081ba
parent69f16f7469c7cbbf571560d6f9389ef2dd170aa7
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>
(cherry picked from commit 47671123206a475f86de9316d8b256e14aa54bc1)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Circulation.pm
t/db_dependent/Circulation/Branch.t