From 5488ca09cece5e1eab441ce0a83252596b8cb4e2 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Wed, 12 Oct 2016 12:38:16 +0200 Subject: [PATCH] Bug 13452: Fix for plack Signed-off-by: Josef Moravec Signed-off-by: Kyle M Hall Signed-off-by: Jonathan Druart (cherry picked from commit a44f202fdb9c933e0b5ac88656e2c8f74e498023) Signed-off-by: Fridolin Somers (cherry picked from commit dafd66b7a6cbabea3af905a3f78064109424d032) Signed-off-by: Katrin Fischer --- reports/issues_avg_stats.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reports/issues_avg_stats.pl b/reports/issues_avg_stats.pl index 07b6732b26..74d2bdc7a3 100755 --- a/reports/issues_avg_stats.pl +++ b/reports/issues_avg_stats.pl @@ -60,7 +60,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) @@ -177,6 +176,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; -- 2.39.5