]> git.koha-community.org Git - koha.git/commit
Bug 27166: Set destination_loc to item->homebranch
authorNick Clemens <nick@bywatersolutions.com>
Tue, 8 Dec 2020 14:18:35 +0000 (14:18 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 14 Dec 2020 17:16:09 +0000 (18:16 +0100)
commite43e15d5cc6253f1f44ed0db1fd77808b2d1acd9
tree00d6d947b68daee290745ecd3bbe5b2a54ef9285
parent081963b6d030d8edb863a424072b0b58e01e0ec6
Bug 27166: Set destination_loc to item->homebranch

In bug 21020 we used the issue to fetch the item and then the homebranch.
This fails when the item is not issued. We fetch the item already, so we
can use it directly

To test:
1 - Have an item belonging to branch A
2 - Check it in via sip at branch B:
    perl misc/sip_cli_emulator.pl -a localhost -p 6001 -su term1 -sp term1 --item CHESS1 -l FPL -m checkin
3 - The read command is blank and there is a warn about uninitialized data
4 - Apply patch
5 - Restart sip server
6 - Check the item in at branch A using the sip cli emulator
7 - Check it in at branch B
8 - This time the checkin should succeed and the output msg should be included

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
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 9ec0744ccce7a5027373154fc0a5098e8c5260c3)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/SIP/ILS/Transaction/Checkin.pm