From d8d67c21e8ad1a973aad89e47eab96b24c1e1bc4 Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Mon, 26 Sep 2011 12:21:58 +0200 Subject: [PATCH] bug 6917 Dates filters doesn't work when they are not selected on row or column --- reports/acquisitions_stats.pl | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/reports/acquisitions_stats.pl b/reports/acquisitions_stats.pl index 8220148..4d041d0 100755 --- a/reports/acquisitions_stats.pl +++ b/reports/acquisitions_stats.pl @@ -47,10 +47,10 @@ my $fullreportname = "reports/acquisitions_stats.tmpl"; my $line = $input->param("Line"); my $column = $input->param("Column"); my @filters = $input->param("Filter"); -$filters[0]= (($line =~ /closedate/ || $column =~ /closedate/) ? format_date_in_iso($filters[0]) : undef); -$filters[1]= (($line =~ /closedate/ || $column =~ /closedate/) ? format_date_in_iso($filters[1]) : undef); -$filters[2]= (($line =~ /delivery/ || $column =~ /delivery/) ? format_date_in_iso($filters[2]) : undef); -$filters[3]= (($line =~ /delivery/ || $column =~ /delivery/) ? format_date_in_iso($filters[3]) : undef); +$filters[0]= format_date_in_iso($filters[0]); +$filters[1]= format_date_in_iso($filters[1]); +$filters[2]= format_date_in_iso($filters[2]); +$filters[3]= format_date_in_iso($filters[3]); my $podsp = $input->param("PlacedOnDisplay"); my $rodsp = $input->param("ReceivedOnDisplay"); my $aodsp = $input->param("AcquiredOnDisplay"); ##added by mason. -- 1.7.0.4