Bugzilla – Attachment 135100 Details for
Bug 30714
Checkins from other branches spam the cataloguing log
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30714: Do no log update to holdingbranch
Bug-30714-Do-no-log-update-to-holdingbranch.patch (text/plain), 1.49 KB, created by
Marcel de Rooy
on 2022-05-18 11:29:16 UTC
(
hide
)
Description:
Bug 30714: Do no log update to holdingbranch
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2022-05-18 11:29:16 UTC
Size:
1.49 KB
patch
obsolete
>From 81b144de220bea2093bd8c5c3a9b68a332bf563f Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 6 May 2022 20:32:32 +0000 >Subject: [PATCH] Bug 30714: Do no log update to holdingbranch >Content-Type: text/plain; charset=utf-8 > >When an item from another branch is checked in, the holdingbranch is >updated, and this change is logged. We record the checkin in >statistics, we do not need the cataloguing update logged > >To recreate: >1 - Enable cataloguing log >2 - Check in an item with a different holding branch >3 - Check the action logs >4 - There is a cataloguing log for the holdingbranch update >5 - Apply patch >6 - Repeate with another item >7 - No log added! > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > C4/Circulation.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 117c4dd066..d92cdcc0b2 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -2207,7 +2207,7 @@ sub AddReturn { > # the holdingbranch is updated if the document is returned to another location. > # this is always done regardless of whether the item was on loan or not > if ($item->holdingbranch ne $branch) { >- $item->holdingbranch($branch)->store({ skip_record_index => 1, skip_holds_queue => 1 }); >+ $item->holdingbranch($branch)->store({ log_action => 0, skip_record_index => 1, skip_holds_queue => 1 }); > } > > my $item_was_lost = $item->itemlost; >-- >2.20.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 30714
:
134763
|
134764
|
134863
|
134864
| 135100