From: Frédéric Buclin Date: Mon, 2 Aug 2010 23:17:19 +0000 (+0200) Subject: Bug 583287: Some fields should not be displayed in bugmail for new bugs X-Git-Tag: bugzilla-3.7.3~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae02237f5bebcadd81d9498ddfe894f5347a2c37;p=thirdparty%2Fbugzilla.git Bug 583287: Some fields should not be displayed in bugmail for new bugs r/a=mkanat --- diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index b2482858a8..26b67a3cc5 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -525,10 +525,10 @@ sub sendMail { $value = $value->name; } elsif ($name eq 'estimated_time') { - $value = format_time_decimal($value); + $value = ($value == 0) ? 0 : format_time_decimal($value); } elsif ($name eq 'deadline') { - $value = time2str("%Y-%m-%d", str2time($value)); + $value = time2str("%Y-%m-%d", str2time($value)) if $value; } # If there isn't anything to show, don't include this header. diff --git a/Bugzilla/Field.pm b/Bugzilla/Field.pm index 26025015ab..65c1cec588 100644 --- a/Bugzilla/Field.pm +++ b/Bugzilla/Field.pm @@ -214,9 +214,9 @@ use constant DEFAULT_FIELDS => ( {name => 'target_milestone', desc => 'Target Milestone', buglist => 1}, {name => 'creation_ts', desc => 'Creation date', - in_new_bugmail => 1, buglist => 1}, + buglist => 1}, {name => 'delta_ts', desc => 'Last changed date', - in_new_bugmail => 1, buglist => 1}, + buglist => 1}, {name => 'longdesc', desc => 'Comment'}, {name => 'longdescs.isprivate', desc => 'Comment is private'}, {name => 'alias', desc => 'Alias', buglist => 1},