From 4f25c1079abeef099ac0e10f2c283c6122a275c6 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 --- C4/Items.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Items.pm b/C4/Items.pm index 15b61f0005..ef694a1a43 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -559,7 +559,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