Bugzilla – Attachment 97453 Details for
Bug 24377
Record branch in statistics for auto-renewal
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24377: Record passed branch if renewing via cron
Bug-24377-Record-passed-branch-if-renewing-via-cro.patch (text/plain), 1.43 KB, created by
ByWater Sandboxes
on 2020-01-16 15:53:23 UTC
(
hide
)
Description:
Bug 24377: Record passed branch if renewing via cron
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2020-01-16 15:53:23 UTC
Size:
1.43 KB
patch
obsolete
>From 5255a94defacfb8ec6cd8d819f3d8a5c147149c8 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 16 Jan 2020 13:09:58 +0000 >Subject: [PATCH] Bug 24377: Record passed branch if renewing via cron > >To test: >1 - Checkout an item with auto renewal set and eligible for auto renew >2 - Set no renewal before in the circ rules to 99 (something greater than the checkout period) >3 - perl misc/cronjobs/automatic_renewals.pl >4 - Check the statistics table, note the branch for renewal is null > SELECT * FROM statistics WHERE itemnumber={itemnumber} AND type='RENEWAL' >5 - Apply patch >6 - Repeat 1-4 >7 - Note the branch is set to the issuing branch > >Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> > >Signed-off-by: Ed Veal <eveal@mckinneytexas.org> >--- > C4/Circulation.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index c3629c2472..d39961a243 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -2987,7 +2987,7 @@ sub AddRenewal { > } > > unless ( C4::Context->interface eq 'opac' ) { #if from opac we are obeying OpacRenewalBranch as calculated in opac-renew.pl >- $branch = C4::Context->userenv ? C4::Context->userenv->{branch} : $branch; >+ $branch = ( C4::Context->userenv && defined C4::Context->userenv->{branch} ) ? C4::Context->userenv->{branch} : $branch; > } > > # Add the renewal to stats >-- >2.11.0
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 24377
:
97438
|
97439
|
97441
|
97442
|
97453
|
98167
|
98168