From 4236afecaa04c032428e13019da0839c89162dfa 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 --- admin/authorised_values.pl | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/admin/authorised_values.pl b/admin/authorised_values.pl index 5282022..1545f0e 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}, -- 1.7.2.5