From 8f8865869c59b10b670a2e8c6dcb887b7fedfda4 Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Fri, 13 Jul 2012 16:23:02 +0200 Subject: [PATCH] Bug 8440: Dates do not appear in suggestions management Signed-off-by: Owen Leonard Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack --- suggestion/suggestion.pl | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl index f7c50b50ff..59db561e67 100755 --- a/suggestion/suggestion.pl +++ b/suggestion/suggestion.pl @@ -209,20 +209,13 @@ if ($op=~/else/) { my $bud = GetBudget( $suggestion->{budgetid} ); $suggestion->{budget_name} = $bud->{budget_name} if $bud; } - foreach my $date qw(suggesteddate manageddate accepteddate) { - if ($suggestion->{$date} and $suggestion->{$date} ne "0000-00-00" && $suggestion->{$date} ne "" ) { + foreach my $date (qw(suggesteddate manageddate accepteddate)) { + if ($suggestion->{$date} and $suggestion->{$date} ne "0000-00-00") { $suggestion->{$date} = format_date( $suggestion->{$date} ); } else { $suggestion->{$date} = ""; } } - foreach my $date ( qw(suggesteddate manageddate accepteddate) ){ - if ($suggestion->{$date} ne "0000-00-00" && $suggestion->{$date} ne "" ){ - $suggestion->{$date}=format_date($suggestion->{$date}) ; - } else { - $suggestion->{$date}="" ; - } - } } push @allsuggestions,{ "suggestiontype"=>$criteriumvalue||"suggest", -- 2.39.5