Bugzilla – Attachment 150236 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 localuse when checking out to stats patron
Bug-16122-Increment-localuse-when-checking-out-to-.patch (text/plain), 947 bytes, created by
Biblibre Sandboxes
on 2023-04-25 23:12:22 UTC
(
hide
)
Description:
Bug 16122: Increment localuse when checking out to stats patron
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2023-04-25 23:12:22 UTC
Size:
947 bytes
patch
obsolete
>From 25612e40f92b70ab5ae24b133dc6a3f0f5b251aa Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Tue, 25 Apr 2023 22:30:20 +0000 >Subject: [PATCH] Bug 16122: Increment localuse when checking out to stats > patron > >Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org> >--- > C4/Circulation.pm | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index b8d9901d37..15c308519b 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -827,6 +827,12 @@ sub CanBookBeIssued { > location => $item_object->location, > } > ); >+ >+ #increment items.localuse >+ my $localuse_count = $item_object->localuse; >+ $localuse_count++; >+ $item_object->localuse( $localuse_count )->store; >+ > ModDateLastSeen( $item_object->itemnumber ); # FIXME Move to Koha::Item > return( { STATS => 1 }, {}); > } >-- >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 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