From ef4e634440b551097d63e823a68f5ba8a26a30be 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 (cherry picked from commit 84521918d93878ffa314decc4eb3b67afe46dca3) Signed-off-by: Fridolin Somers (cherry picked from commit 1779dddfe8ec84d4f654b4a65190fb8ede7e4cbe) Signed-off-by: Matt Blenkinsop --- C4/Items.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Items.pm b/C4/Items.pm index de776d5dfe..bfe3d13126 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