diff options
author | lpsolit%gmail.com <> | 2007-08-08 18:58:19 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-08-08 18:58:19 +0000 |
commit | 152f61366bd9b268cd838307c1e58399003ef2c7 (patch) | |
tree | 92fb18a7f824cb450db3df0fdea8407cc05d7f29 /Bugzilla/BugMail.pm | |
parent | 8d9074a59f0bfa4b79256e5524a447397e3490de (diff) | |
download | bugs-152f61366bd9b268cd838307c1e58399003ef2c7.tar bugs-152f61366bd9b268cd838307c1e58399003ef2c7.tar.gz bugs-152f61366bd9b268cd838307c1e58399003ef2c7.tar.bz2 bugs-152f61366bd9b268cd838307c1e58399003ef2c7.tar.xz bugs-152f61366bd9b268cd838307c1e58399003ef2c7.zip |
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.pm | 7 |
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"; } |