Bug 7679: Followup: circulation statistics wizard improvements
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 29 Oct 2012 15:20:36 +0000 (16:20 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 28 Oct 2016 11:56:49 +0000 (11:56 +0000)
Signed-off-by: Brendan <brendan@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>

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

reports/issues_stats.pl

index e2c569e..7a3ff24 100755 (executable)
@@ -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;