aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2010-08-03 01:16:05 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2010-08-03 01:16:05 +0200
commit8ba061b3f6ced9f3b54321160496ac3d94a9a398 (patch)
treec57e2f1cdfd59cf65b928c6bbeaff5cda54c27c4 /Bugzilla/BugMail.pm
parentBug 583165: Un(setting) a comment as private doesn't update bugs.delta_ts (diff)
downloadbugzilla-8ba061b3f6ced9f3b54321160496ac3d94a9a398.tar.gz
bugzilla-8ba061b3f6ced9f3b54321160496ac3d94a9a398.tar.bz2
bugzilla-8ba061b3f6ced9f3b54321160496ac3d94a9a398.zip
Bug 583287: Some fields should not be displayed in bugmail for new bugs
r/a=mkanat
Diffstat (limited to 'Bugzilla/BugMail.pm')
-rw-r--r--Bugzilla/BugMail.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index 3e97b4457..5688c1e7f 100644
--- a/Bugzilla/BugMail.pm
+++ b/Bugzilla/BugMail.pm
@@ -408,10 +408,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.