summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authordb48x%yahoo.com <>2007-02-27 05:05:22 +0100
committerdb48x%yahoo.com <>2007-02-27 05:05:22 +0100
commit41732933eeb2f25abdd479e5a024cd258c502fd3 (patch)
tree4ee4c6895ed9d25b75aea890a59516bf1ccba3d0 /Bugzilla
parent4827e4de822cbc33acbf66c1d5b4a392c5a3f90c (diff)
downloadbugzilla-41732933eeb2f25abdd479e5a024cd258c502fd3.tar.gz
bugzilla-41732933eeb2f25abdd479e5a024cd258c502fd3.tar.xz
bug 369429: bug reports should contain microformat markup in order to make the information in them more useable.
r=LpSolit
Diffstat (limited to 'Bugzilla')
-rwxr-xr-xBugzilla/Bug.pm1
-rw-r--r--Bugzilla/BugMail.pm6
2 files changed, 3 insertions, 4 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 8591a2f89..8ee0d87e2 100755
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -1475,7 +1475,6 @@ sub GetComments {
my %comment = %$comment_ref;
$comment{'email'} .= Bugzilla->params->{'emailsuffix'};
- $comment{'name'} = $comment{'name'} || $comment{'email'};
# If raw data is requested, do not format 'special' comments.
$comment{'body'} = format_comment(\%comment) unless $raw;
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index fa52464f8..79033dbbe 100644
--- a/Bugzilla/BugMail.pm
+++ b/Bugzilla/BugMail.pm
@@ -704,11 +704,11 @@ sub prepare_comments {
foreach my $comment (@$raw_comments) {
if ($count) {
$result .= "\n\n--- Comment #$count from ";
- if ($comment->{'name'} eq $comment->{'email'}) {
- $result .= $comment->{'email'} . Bugzilla->params->{'emailsuffix'};
- } else {
+ if ($comment->{'name'}) {
$result .= $comment->{'name'} . " <" . $comment->{'email'} .
Bugzilla->params->{'emailsuffix'} . ">";
+ } else {
+ $result .= $comment->{'email'} . Bugzilla->params->{'emailsuffix'};
}
$result .= " " . format_time($comment->{'time'}) . " ---\n";
}