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 <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Nick Clemens 2023-08-30 13:46:52 +00:00 committed by Tomas Cohen Arazi
parent aff8410412
commit 84521918d9
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -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 });
}
}