Bug 13452: Fix for plack

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Julian Maurice 2016-10-12 12:38:16 +02:00 committed by Jonathan Druart
parent 25d28e7c81
commit a44f202fdb

View file

@ -61,7 +61,6 @@ my $rodsp = $input->param("ReturnDisplay");
my $calc = $input->param("Cellvalue");
my $output = $input->param("output");
my $basename = $input->param("basename");
my $itype = C4::Context->preference('item-level_itypes') ? "items.itype" : "biblioitems.itemtype";
#warn "calcul : ".$calc;
my ($template, $borrowernumber, $cookie)
@ -178,6 +177,7 @@ sub calculate {
my @looprow;
my %globalline;
my $grantotal =0;
my $itype = C4::Context->preference('item-level_itypes') ? "items.itype" : "biblioitems.itemtype";
# extract parameters
my $dbh = C4::Context->dbh;