https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36762
--- Comment #10 from Emmi Takkinen <[email protected]> --- Created attachment 199238 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199238&action=edit Bug 36762: Fix setting transfer for hold via branchtransfers.pl When one tries to transfer an item that could fill a pending hold to a library that is not the holds pickup library, Koha gives only a option to transfer item to pickup library. When this option is chosen, Koha tells that item is being transfered to selected library not to pickup library but fails to create the transfer. This patch fixes this by setting op variable as "cud-transfer" and tobranchcd as holds pickup library so that transfer is actually made and target library is displaued correctly. To test: 1. Log into Library A. 2. Find or create a biblio with 1 holdable item at Library A. 3. Place a hold for pickup at Library B. 4. Navigate to Circulation > Transfers. 5. Attempt to send your item to Library C. 6. Koha gives you three options. Pick the first one: "Transfer to Library B." 7. Koha tells you it has transferred the item to Library C. 8. Go to detail.pl for your title, confirm the holdings table says "there is an item level hold" on your item. 9. Click to the Holds tab for your title, confirm the hold claims to be in transit. 10. Query the branchtransfers table SELECT * FROM branchtransfers WHERE itemnumber = [your item] => Note that no new transfer was made. 11. Query reserves SELECT * FROM reserves WHERE biblionumber = [your biblio] => Confirm your hold has found=T, itemnumber=[your item], and item_level_hold=0 12. Revert trasfer from biblios holds page. 13. Apply this patch. 14. Attempt the transfer again. => Koha should now tell that transfer was made to Libary B. 15. Check branchtransfers table again. => New transfer should have been made to Library B. Sponsored-by: Koha-Suomi Oy -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
