Bugzilla – Attachment 153198 Details for
Bug 16122
Item record needs to keep local use count
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16122: Increment items.localuse in AddReturn
Bug-16122-Increment-itemslocaluse-in-AddReturn.patch (text/plain), 1.23 KB, created by
Emily Lamancusa (emlam)
on 2023-07-07 16:55:30 UTC
(
hide
)
Description:
Bug 16122: Increment items.localuse in AddReturn
Filename:
MIME Type:
Creator:
Emily Lamancusa (emlam)
Created:
2023-07-07 16:55:30 UTC
Size:
1.23 KB
patch
obsolete
>From 8ba7559cedea96872a84ca42aa2f000854b25466 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 7 Apr 2023 16:57:12 +0000 >Subject: [PATCH] Bug 16122: Increment items.localuse in AddReturn > >Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org> >Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> >--- > C4/Circulation.pm | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 0f1b6914aa..52304857ce 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -2100,6 +2100,7 @@ sub AddReturn { > > my $itemnumber = $item->itemnumber; > my $itemtype = $item->effective_itemtype; >+ my $localuse_count = $item->localuse; > > my $issue = $item->checkout; > if ( $issue ) { >@@ -2115,6 +2116,8 @@ sub AddReturn { > # No issue, no borrowernumber. ONLY if $doreturn, *might* you have a $borrower later. > # Record this as a local use, instead of a return, if the RecordLocalUseOnReturn is on > if (C4::Context->preference("RecordLocalUseOnReturn")) { >+ $localuse_count++; >+ $item->localuse( $localuse_count )->store; > $messages->{'LocalUse'} = 1; > $stat_type = 'localuse'; > } >-- >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 16122
:
149281
|
149282
|
149283
|
149284
|
150231
|
150232
|
150233
|
150234
|
150235
|
150236
|
150623
|
150693
|
153193
|
153196
|
153197
|
153198
|
153199
|
153200
|
158466
|
158467
|
158468
|
158469
|
158470
|
158471
|
161001
|
161002
|
161003
|
161004
|
161005
|
161006
|
161144
|
161145
|
161146
|
161147
|
161148
|
161149
|
161150
|
161151
|
161153
|
161154
|
161155
|
161156
|
161157
|
161158
|
161159
|
161160
|
163072
|
163073
|
163074
|
163075
|
163076
|
163077
|
163243
|
163244
|
163245
|
163246
|
163247
|
163248
|
163296
|
163297
|
163298
|
163299
|
163300
|
163301
|
163302
|
163303
|
165313
|
165314
|
165315
|
165316
|
165317
|
165318
|
165319
|
165320