diff options
author | lpsolit%gmail.com <> | 2007-08-08 20:58:19 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-08-08 20:58:19 +0200 |
commit | 152f61366bd9b268cd838307c1e58399003ef2c7 (patch) | |
tree | 92fb18a7f824cb450db3df0fdea8407cc05d7f29 /Bugzilla/Bug.pm | |
parent | 8d9074a59f0bfa4b79256e5524a447397e3490de (diff) | |
download | bugzilla-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/Bug.pm')
-rwxr-xr-x | Bugzilla/Bug.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 5f37e9ff4..0a2770a65 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -2251,8 +2251,7 @@ sub GetComments { my @comments; my @args = ($id); - my $query = 'SELECT longdescs.comment_id AS id, profiles.realname AS name, - profiles.login_name AS email, ' . + my $query = 'SELECT longdescs.comment_id AS id, profiles.userid, ' . $dbh->sql_date_format('longdescs.bug_when', '%Y.%m.%d %H:%i:%s') . ' AS time, longdescs.thetext AS body, longdescs.work_time, isprivate, already_wrapped, type, extra_data @@ -2271,8 +2270,7 @@ sub GetComments { while (my $comment_ref = $sth->fetchrow_hashref()) { my %comment = %$comment_ref; - - $comment{'email'} .= Bugzilla->params->{'emailsuffix'}; + $comment{'author'} = new Bugzilla::User($comment{'userid'}); # If raw data is requested, do not format 'special' comments. $comment{'body'} = format_comment(\%comment) unless $raw; |