Bug 13452: Fix for plack
authorJulian Maurice <julian.maurice@biblibre.com>
Wed, 12 Oct 2016 10:38:16 +0000 (12:38 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 15 Jun 2017 18:27:46 +0000 (15:27 -0300)
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>

reports/issues_avg_stats.pl

index 1e8e138..5c35de7 100755 (executable)
@@ -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;