From b6b63294351847a1326b7772c105d84aaa60f493 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Fri, 2 Nov 2012 09:53:57 +0100 Subject: [PATCH] Bug 8904: fix Plack scoping for overduerules.pl There are 2 Plack scoping errors in tools/overduerules.pl: the local sub blank_row require that @rule_params and input are global Signed-off-by: Jared Camins-Esakov Passed-QA-by: Mason James y Signed-off-by: Jared Camins-Esakov --- tools/overduerules.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/overduerules.pl b/tools/overduerules.pl index 478a762e73..cc90d0bf71 100755 --- a/tools/overduerules.pl +++ b/tools/overduerules.pl @@ -28,7 +28,7 @@ use C4::Branch; use C4::Letters; use C4::Members; -my $input = new CGI; +our $input = new CGI; my $dbh = C4::Context->dbh; my @categories = @{$dbh->selectall_arrayref( @@ -36,7 +36,7 @@ my @categories = @{$dbh->selectall_arrayref( { Slice => {} } )}; my @category_codes = map { $_->{categorycode} } @categories; -my @rule_params = qw(delay letter debarred); +our @rule_params = qw(delay letter debarred); # blank_row($category_code) - return true if the entire row is blank. sub blank_row { -- 2.39.5