Browse files

Bug 8440: Dates does not appear in suggestions management

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
  • Loading branch information...
1 parent 1106ed5 commit 81823c55cc11125345ce8492b508561c34155c12 Fridolyn SOMERS committed with PaulPoulain Jul 13, 2012
Showing with 2 additions and 9 deletions.
  1. +2 −9 suggestion/suggestion.pl
View
11 suggestion/suggestion.pl
@@ -209,20 +209,13 @@ sub GetCriteriumDesc{
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",

0 comments on commit 81823c5

Please sign in to comment.