From 84521918d93878ffa314decc4eb3b67afe46dca3 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 30 Aug 2023 13:46:52 +0000 Subject: [PATCH] Bug 34656: Do not update real Time Holds Queue when moving from cart to shelf To test: 1 - Enable RealTimeHoldsQueue system preference 2 - Set UpdateItemLocationOnCheckin to _ALL_: CART 3 - Check in an item 4 - Check the background jobs - the RTHQ is updated 5 - perl -e 'use C4::Items; C4::Items::CartToShelf(##);' -- substitute the itemnumber from above 6 - Check the background jobs - no new update to RTHQ 7 - Confirm item was set back to correct permanent_location Signed-off-by: Emily Lamancusa Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Tomas Cohen Arazi --- C4/Items.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Items.pm b/C4/Items.pm index 813d01a045..c640b63baa 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -125,7 +125,7 @@ sub CartToShelf { my $item = Koha::Items->find($itemnumber); if ( $item->location eq 'CART' ) { - $item->location($item->permanent_location)->store; + $item->location($item->permanent_location)->store({ skip_holds_queue => 1 }); } } -- 2.39.5