Bugzilla – Attachment 134761 Details for
Bug 30668
UpdateItemLocationOnCheckin spams the cataloguing log
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30668: Do not record itme location updates in cataloguing log
Bug-30668-Do-not-record-itme-location-updates-in-c.patch (text/plain), 1.97 KB, created by
Nick Clemens (kidclamp)
on 2022-05-06 20:13:16 UTC
(
hide
)
Description:
Bug 30668: Do not record itme location updates in cataloguing log
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2022-05-06 20:13:16 UTC
Size:
1.97 KB
patch
obsolete
>From 0133cb540ffefd1ce7730f0d671d12df44840ab3 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 6 May 2022 20:10:54 +0000 >Subject: [PATCH] Bug 30668: Do not record itme location updates in cataloguing > log > >To test: >1 - Set a rule in UpdateItemLocationOnCheckin >2 - Enable cataloguing log >3 - Check in an item that will trigger a change >4 - Check the modification log for item - there is a cataloguing entry >5 - Apply patch >6 - Repeat >7 - No log! >--- > C4/Circulation.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 2ae081d6b1..d312961478 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -2110,7 +2110,7 @@ sub AddReturn { > (!defined $item->location && $update_loc_rules->{_ALL_} ne "") > ) { > $messages->{'ItemLocationUpdated'} = { from => $item->location, to => $update_loc_rules->{_ALL_} }; >- $item->location($update_loc_rules->{_ALL_})->store({ skip_record_index => 1, skip_holds_queue => 1}); >+ $item->location($update_loc_rules->{_ALL_})->store({ log_action => 0, skip_record_index => 1, skip_holds_queue => 1}); > } > } > else { >@@ -2119,7 +2119,7 @@ sub AddReturn { > if ( $update_loc_rules->{$key} eq '_BLANK_') { $update_loc_rules->{$key} = '' ;} > if ( ($item->location eq $key && $item->location ne $update_loc_rules->{$key}) || ($key eq '_BLANK_' && $item->location eq '' && $update_loc_rules->{$key} ne '') ) { > $messages->{'ItemLocationUpdated'} = { from => $item->location, to => $update_loc_rules->{$key} }; >- $item->location($update_loc_rules->{$key})->store({ skip_record_index => 1, skip_holds_queue => 1}); >+ $item->location($update_loc_rules->{$key})->store({ log_action => 0, skip_record_index => 1, skip_holds_queue => 1}); > last; > } > } >-- >2.30.2
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 30668
:
134760
|
134761
|
134765
|
134766
|
134788
|
134789