From babc6fbfe9e3ea8ac960609538dfb45da2e79ed9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 29 Oct 2012 16:20:36 +0100 Subject: [PATCH] Bug 7679: Followup: circulation statistics wizard improvements Signed-off-by: Brendan Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall --- reports/issues_stats.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reports/issues_stats.pl b/reports/issues_stats.pl index e2c569e86e..7a3ff247c3 100755 --- a/reports/issues_stats.pl +++ b/reports/issues_stats.pl @@ -254,7 +254,7 @@ sub calculate { ( $line =~ /datetime/ ) ? @$filters[0] : ( $line =~ /category/ ) ? @$filters[2] : ( $line =~ /itemtype/ ) ? @$filters[3] - : ( $line =~ /branch/ ) ? @$filters[4] + : ( $line =~ /^branch/ ) ? @$filters[4] : ( $line =~ /ccode/ ) ? @$filters[5] : ( $line =~ /location/ ) ? @$filters[6] : ( $line =~ /sort1/ ) ? @$filters[9] @@ -514,7 +514,7 @@ sub calculate { if ( $linefield =~ /^items\./ or $colfield =~ /^items\./ or $process == 5 - or ( $colsource eq 'items' ) || @$filters[5] || @$filters[6] || @$filters[7] || @$filters[8] ); + or ( $colsource eq 'items' ) || @$filters[5] || @$filters[6] || @$filters[7] || @$filters[8] || @$filters[9] || @$filters[10] || @$filters[11] || @$filters[12] || @$filters[13] ); $strcalc .= "WHERE 1=1 "; @$filters = map { defined($_) and s/\*/%/g; $_ } @$filters; -- 2.39.5