From 4b8bc7b31a1e02244b1ca0574aa62c5cc5a7aeb8 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 28 Jan 2016 16:02:53 +0000 Subject: [PATCH] Bug 10612 - Change _skip_borrowers_with_fines to _skip_borrowers_with_fines_or_issues Restore code that was moved to bug 15642 --- tools/cleanborrowers.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/cleanborrowers.pl b/tools/cleanborrowers.pl index b986460..7e0db06 100755 --- a/tools/cleanborrowers.pl +++ b/tools/cleanborrowers.pl @@ -189,9 +189,10 @@ $template->param( #writing the template output_html_with_http_headers $cgi, $cookie, $template->output; -sub _skip_borrowers_with_nonzero_balance { +sub _skip_borrowers_with_nonzero_balance_or_issues { my $borrowers = shift; my $balance; + my $issues; @$borrowers = map { (undef, $issues, $balance) = GetMemberIssuesAndFines( $_->{borrowernumber} || $_->get_column('borrowernumber') ); ($balance != 0 || $issues!= 0) ? (): ($_); -- 2.1.4