From 40380339f9bdd0b2a056c820bc61a3cdc8545df3 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 Signed-off-by: Martin Renvoize --- C4/Items.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Items.pm b/C4/Items.pm index 7076674392..cca700258d 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.39.5