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 <julian.maurice@biblibre.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
Dobrica Pavlinusic 2012-06-01 20:42:52 +02:00 committed by Paul Poulain
parent 9929c52a57
commit 47be784f96

View file

@ -86,7 +86,7 @@ my $dateto = $input->param('dateto');
my $resultsperpage = $input->param('resultsperpage'); my $resultsperpage = $input->param('resultsperpage');
$resultsperpage ||= 20; $resultsperpage ||= 20;
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( our ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{ template_name => 'acqui/parcels.tmpl', { template_name => 'acqui/parcels.tmpl',
query => $input, query => $input,
type => 'intranet', type => 'intranet',