From ef3a2c62df958066481a40743ef22bfd04c0c5b7 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Thu, 22 Mar 2012 12:01:06 +0100 Subject: [PATCH] Bug 7795 - admin/authorised_values.pl breaks with plack scoping fixes for Variable "*" is not available errors Signed-off-by: Alex Arnaud Signed-off-by: Paul Poulain --- admin/authorised_values.pl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/admin/authorised_values.pl b/admin/authorised_values.pl index 528202289e..1545f0ea61 100755 --- a/admin/authorised_values.pl +++ b/admin/authorised_values.pl @@ -45,14 +45,14 @@ sub AuthorizedValuesForCategory { my $input = new CGI; my $id = $input->param('id'); my $op = $input->param('op') || ''; -my $offset = $input->param('offset') || 0; -my $searchfield = $input->param('searchfield'); +our $offset = $input->param('offset') || 0; +our $searchfield = $input->param('searchfield'); $searchfield = '' unless defined $searchfield; $searchfield =~ s/\,//g; -my $script_name = "/cgi-bin/koha/admin/authorised_values.pl"; -my $dbh = C4::Context->dbh; +our $script_name = "/cgi-bin/koha/admin/authorised_values.pl"; +our $dbh = C4::Context->dbh; -my ($template, $borrowernumber, $cookie)= get_template_and_user({ +our ($template, $borrowernumber, $cookie)= get_template_and_user({ template_name => "admin/authorised_values.tmpl", authnotrequired => 0, flagsrequired => {parameters => 1}, -- 2.39.5