From 533d91c515f45711b1d055525a0efea6cd2a0d36 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 14 Jun 2019 18:18:03 +0000 Subject: [PATCH] Bug 23129: Set holdingbranch to library that initiates transfer To test: 1 - Find an item 2 - Check it in at anothe rbranch and initiate a transfer 3 - View the item details or check db - note that holdingbranch is set as the destination library 4 - Complete or cancel the transfer 5 - Apply patch 6 - Initiate a new transfer 7 - Note the holdingbranch is set to the initiating library Signed-off-by: Claire Gravely Signed-off-by: Bouzid Fergani Signed-off-by: Katrin Fischer --- C4/Items.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Items.pm b/C4/Items.pm index 797bda6244..5698e51041 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -563,7 +563,7 @@ sub ModItemTransfer { VALUES (?, ?, NOW(), ?)"); $sth->execute($itemnumber, $frombranch, $tobranch); - ModItem({ holdingbranch => $tobranch }, undef, $itemnumber, { log_action => 0 }); + ModItem({ holdingbranch => $frombranch }, undef, $itemnumber, { log_action => 0 }); ModDateLastSeen($itemnumber); return; } -- 2.11.0