From f901dc3a45c68bc7b4a106b7ac925d8d1e964a86 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 Signed-off-by: Chris Cormack Signed-off-by: Paul Poulain (cherry picked from commit 9855b834b66bf4b3dc1edb36e1347997d5aded86) Signed-off-by: Chris Nighswonger --- reports/acquisitions_stats.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reports/acquisitions_stats.pl b/reports/acquisitions_stats.pl index 82201488cb..4d041d0a69 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. -- 2.39.5