Bugzilla – Attachment 53464 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]
[SIGNED-OFF] Bug 15023: (followup) Remove warnings
SIGNED-OFF-Bug-15023-followup-Remove-warnings.patch (text/plain), 1017 bytes, created by
Liz Rea
on 2016-07-18 04:00:41 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 15023: (followup) Remove warnings
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2016-07-18 04:00:41 UTC
Size:
1017 bytes
patch
obsolete
>From ee02864774d26793fd7db23528719bd95ab49a57 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] [SIGNED-OFF] 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 >Signed-off-by: Liz Rea <liz@catalyst.net.nz> >--- > 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; > } > >-- >1.9.1
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