From f9fde23b587da3c4878b5dd2b12fac283c9b46b9 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 22 Mar 2013 11:21:31 +0000 Subject: [PATCH] Bug 7683 [Follow-up] Avoid printing useless '=1' Content-Type: text/plain; charset="utf-8" This was caused by 'like/not like' select which had no description in catalogue_stats.pl Signed-off-by: Owen Leonard --- reports/catalogue_stats.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reports/catalogue_stats.pl b/reports/catalogue_stats.pl index a92a046..643497e 100755 --- a/reports/catalogue_stats.pl +++ b/reports/catalogue_stats.pl @@ -234,7 +234,7 @@ sub calculate { my @loopfilter; for ( my $i = 0 ; $i <= @$filters ; $i++ ) { my %cell; - if ( defined @$filters[$i] and @$filters[$i] ne '' ) { + if ( defined @$filters[$i] and @$filters[$i] ne '' and $i != 16 ) { if ( ( ( $i == 1 ) or ( $i == 3 ) or ( $i == 5 ) or ( $i == 9 ) ) and ( @$filters[ $i - 1 ] ) ) { $cell{err} = 1 if ( @$filters[$i] < @$filters[ $i - 1 ] ); } @@ -256,11 +256,14 @@ sub calculate { : ( $i == 13 ) ? "Status" : ( $i == 14 ) ? "Materials" : ( $i == 15 ) ? "Statistic value" + : ( $i == 17 and $filters->[16] == 0 ) ? "Barcode (not like)" + : ( $i == 17 and $filters->[16] == 1 ) ? "Barcode (like)" : ( $i == 18 ) ? "Acquired date from" : ( $i == 19 ) ? "Acquired date to" : ( $i == 20 ) ? "Removed date from" : ( $i == 21 ) ? "Removed date to" : ''; + push @loopfilter, \%cell; } } -- 1.7.9.5