Bugzilla – Attachment 52900 Details for
Bug 15023
Allow patron anonymize/bulk delete tool to be limited by branch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15023: (followup) Remove warnings
Bug-15023-followup-Remove-warnings.patch (text/plain), 959 bytes, created by
Tomás Cohen Arazi (tcohen)
on 2016-06-27 15:26:24 UTC
(
hide
)
Description:
Bug 15023: (followup) Remove warnings
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2016-06-27 15:26:24 UTC
Size:
959 bytes
patch
obsolete
>From 1be4ebb4f882266d233dbaad2aefe9e37a916338 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 27 Jun 2016 12:24:15 -0300 >Subject: [PATCH] Bug 15023: (followup) Remove warnings > >By setting 'use Modern::Perl' some previously hidden warnings arised. >This patch removes them by testing the variable $balance for undef >before using it in a comparisson. > >Sponsored-by: VOKAL >--- > tools/cleanborrowers.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/tools/cleanborrowers.pl b/tools/cleanborrowers.pl >index df2196f..4cc9169 100755 >--- a/tools/cleanborrowers.pl >+++ b/tools/cleanborrowers.pl >@@ -188,7 +188,7 @@ sub _skip_borrowers_with_nonzero_balance { > my $balance; > @$borrowers = map { > (undef, undef, $balance) = GetMemberIssuesAndFines( $_->{borrowernumber} ); >- ($balance != 0) ? (): ($_); >+ (defined $balance && $balance != 0) ? (): ($_); > } @$borrowers; > } > >-- >2.9.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 15023
:
52899
|
52900
|
53463
|
53464
|
53735
|
53736