From 47be784f968329508fae26a5786548b03e7be039 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Fri, 1 Jun 2012 20:42:52 +0200 Subject: [PATCH] Bug 8183 - acqui/parcels.pl plack scoping Scope our $template for plack to prevent following error: Can't call method "param" on an undefined value at /srv/koha_ffzg/acqui/parcels.pl line 177. Test scenario: 1. Home > Acquisitions > Search for vendor 2. click on "Receive shipment" Signed-off-by: Julian Maurice Signed-off-by: Paul Poulain --- acqui/parcels.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/parcels.pl b/acqui/parcels.pl index 173c0c8ef2..fdb46d5744 100755 --- a/acqui/parcels.pl +++ b/acqui/parcels.pl @@ -86,7 +86,7 @@ my $dateto = $input->param('dateto'); my $resultsperpage = $input->param('resultsperpage'); $resultsperpage ||= 20; -my ( $template, $loggedinuser, $cookie ) = get_template_and_user( +our ( $template, $loggedinuser, $cookie ) = get_template_and_user( { template_name => 'acqui/parcels.tmpl', query => $input, type => 'intranet', -- 2.39.5