Bugzilla – Attachment 116041 Details for
Bug 18146
C4::Circulation CanBookBeRenewed lacks full test coverage
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18146: (follow-up) Remove warn for uninitialized value
Bug-18146-follow-up-Remove-warn-for-uninitialized-.patch (text/plain), 1.26 KB, created by
Nick Clemens (kidclamp)
on 2021-01-29 15:27:56 UTC
(
hide
)
Description:
Bug 18146: (follow-up) Remove warn for uninitialized value
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2021-01-29 15:27:56 UTC
Size:
1.26 KB
patch
obsolete
>From e4f2686da36437a4486508ce4a809d663cfbfefa Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 29 Jan 2021 15:24:20 +0000 >Subject: [PATCH] Bug 18146: (follow-up) Remove warn for uninitialized value > >In the previous patch you may have noticed many warns when running the tests > >We add guarantor charges to a variable to determine if over the limit, but we don't initialize that value > >We should > >To test: >1 - Apply first patch and follow test plan >2 - Note warns when proving test >3 - Apply this patch >4 - prove >5 - No more warns >--- > C4/Circulation.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 1f13cef93d..d2304b0889 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -840,7 +840,7 @@ sub CanBookBeIssued { > $no_issues_charge_guarantees = undef unless looks_like_number( $no_issues_charge_guarantees ); > if ( defined $no_issues_charge_guarantees ) { > my @guarantees = map { $_->guarantee } $patron->guarantee_relationships(); >- my $guarantees_non_issues_charges; >+ my $guarantees_non_issues_charges = 0; > foreach my $g ( @guarantees ) { > $guarantees_non_issues_charges += $g->account->non_issues_charges; > } >-- >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 18146
:
116040
|
116041
|
116089
|
116090
|
116865
|
116866