Bugzilla – Attachment 140109 Details for
Bug 7021
Add patron category to the statistics table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7021: (QA follow-up): Minor code cleanup
Bug-7021-QA-follow-up-Minor-code-cleanup.patch (text/plain), 1.17 KB, created by
Kyle M Hall (khall)
on 2022-09-02 11:15:45 UTC
(
hide
)
Description:
Bug 7021: (QA follow-up): Minor code cleanup
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2022-09-02 11:15:45 UTC
Size:
1.17 KB
patch
obsolete
>From 6caff68da1dafc1a3f05aa1ccdbdafb24df577dc Mon Sep 17 00:00:00 2001 >From: Kyle Hall <kyle@bywatersolutions.com> >Date: Fri, 2 Sep 2022 07:00:25 -0400 >Subject: [PATCH] Bug 7021: (QA follow-up): Minor code cleanup > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > C4/Circulation.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 3f322ab6c5..6faf53add9 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -2345,6 +2345,7 @@ sub AddReturn { > } > > # Record the fact that this book was returned. >+ my $categorycode = $patron_unblessed ? $patron_unblessed->{categorycode} : undef; > C4::Stats::UpdateStats({ > branch => $branch, > type => $stat_type, >@@ -2353,7 +2354,7 @@ sub AddReturn { > location => $item->location, > borrowernumber => $borrowernumber, > ccode => $item->ccode, >- ( $patron_unblessed ? ( categorycode => $patron_unblessed->{categorycode} ) : () ), >+ categorycode => $categorycode, > }); > > # Send a check-in slip. # NOTE: borrower may be undef. Do not try to send messages then. >-- >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 7021
:
29456
|
29508
|
122881
|
122882
|
122883
|
129119
|
129120
|
129121
|
129122
|
135269
|
135270
|
135271
|
135272
|
135273
|
135274
|
140103
|
140104
|
140105
|
140106
|
140107
|
140108
| 140109 |
140110
|
140116
|
140144
|
140845