Bugzilla – Attachment 155012 Details for
Bug 34656
CartToShelf should not trigger RealTimeHoldsQueue
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34656: Do not update real Time Holds Queue when moving from cart to shelf
Bug-34656-Do-not-update-real-Time-Holds-Queue-when.patch (text/plain), 1.17 KB, created by
Emily Lamancusa (emlam)
on 2023-08-31 14:46:31 UTC
(
hide
)
Description:
Bug 34656: Do not update real Time Holds Queue when moving from cart to shelf
Filename:
MIME Type:
Creator:
Emily Lamancusa (emlam)
Created:
2023-08-31 14:46:31 UTC
Size:
1.17 KB
patch
obsolete
>From e319ff771d9a31030fae2ee74aaef5149eb8fc9a Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >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 <emily.lamancusa@montgomerycountymd.gov> >--- > 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.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34656
:
154957
|
154958
|
155011
|
155012
|
155013
|
155207
|
155208
|
155209