If an item has had wrong transfer at some point (at branchtransfers -table there shows wrong transfer for that item) that item does not show on holds to pull -list even it is available at the moment.
Hi Minna, could you add a test plan on how to reproduce this bug?
Steps to reproduce the problem: Use Koha settings where it is allowed to return items to any branch no matter of item homebranch. 1. Item has homebranch A. Item is not loaned. 2. Make biblio-level hold, pickup branch B 3. Check in the item at branch C and confirm hold&transfer 4. Cancel hold 5. Check in the item at branch A (item homebranch) > Koha says "Wrong transfer. Return the item to branch B" (branch that was pickup branch for the hold that was cancelled). Cancel transfer at this popup window 6. Make a new hold to the biblio for original item. Now the item is available at it's homebranch A, but is not showing on the Holds to pull list. There is now trick to get the item to show on the holds to pull -list after this happens. If there is "wrong transfer" on the barchtransfers -table, it is not coming on the list no matter how many times it is checked in at the home branch.
I was able to reproduce this bug exactly on a 21.11.11 instance following the steps set out by Minna Kivinen. Before I followed the steps I created a brand new item and placed a hold on the title it was attached to; it correctly appeared in the Holds to pull. After following Minna's steps the title was not appearing in the Holds to pull, even though an item was available at its homebranch. It was only appearing in the Holds queue.
I tested this bug in version 22.11. and it did not occur anymore.
As 21.11 is no longer supported and this has been reportedly fixed in newer versions, I am closing this one FIXED.