summaryrefslogtreecommitdiffstats
path: root/Bugzilla/BugMail.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-08-08 20:58:19 +0200
committerlpsolit%gmail.com <>2007-08-08 20:58:19 +0200
commit152f61366bd9b268cd838307c1e58399003ef2c7 (patch)
tree92fb18a7f824cb450db3df0fdea8407cc05d7f29 /Bugzilla/BugMail.pm
parent8d9074a59f0bfa4b79256e5524a447397e3490de (diff)
downloadbugzilla-152f61366bd9b268cd838307c1e58399003ef2c7.tar.gz
bugzilla-152f61366bd9b268cd838307c1e58399003ef2c7.tar.xz
Bug 332149: Ability to have symbols placed next to user names based on group membership - Patch by Frédéric Buclin <LpSolit@gmail.com> r=myk a=LpSolit
Diffstat (limited to 'Bugzilla/BugMail.pm')
-rw-r--r--Bugzilla/BugMail.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index acc12556d..0d5d3fd78 100644
--- a/Bugzilla/BugMail.pm
+++ b/Bugzilla/BugMail.pm
@@ -703,11 +703,12 @@ sub prepare_comments {
my $result = "";
foreach my $comment (@$raw_comments) {
if ($count) {
+ my $author = $comment->{'author'};
$result .= "\n\n--- Comment #$count from ";
- if ($comment->{'name'}) {
- $result .= $comment->{'name'} . " <" . $comment->{'email'} . ">";
+ if ($author->name) {
+ $result .= $author->name . " <" . $author->email . ">";
} else {
- $result .= $comment->{'email'};
+ $result .= $author->email;
}
$result .= " " . format_time($comment->{'time'}) . " ---\n";
}