From: Julian Maurice Date: Wed, 12 Oct 2016 10:38:16 +0000 (+0200) Subject: Bug 13452: Fix for plack X-Git-Tag: v17.11.00~1002 X-Git-Url: http://git.equinoxoli.org/?p=koha.git;a=commitdiff_plain;h=a44f202fdb9c933e0b5ac88656e2c8f74e498023 Bug 13452: Fix for plack Signed-off-by: Josef Moravec Signed-off-by: Kyle M Hall Signed-off-by: Jonathan Druart --- diff --git a/reports/issues_avg_stats.pl b/reports/issues_avg_stats.pl index 1e8e138..5c35de7 100755 --- a/reports/issues_avg_stats.pl +++ b/reports/issues_avg_stats.pl @@ -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;