From dce0cf73010c7ed17f98a5b19148390d11788ef7 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 8 Jul 2005 01:42:08 +0000 Subject: Bug 240251: Bug::AppendComment() should receive the user ID as a 2nd parameter - Patch by Frédéric Buclin r=wurblzap a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Bug.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 40ed06631..fae0decc0 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -696,7 +696,7 @@ sub bug_alias_to_id ($) { ##################################################################### sub AppendComment ($$$;$$$) { - my ($bugid, $who, $comment, $isprivate, $timestamp, $work_time) = @_; + my ($bugid, $whoid, $comment, $isprivate, $timestamp, $work_time) = @_; $work_time ||= 0; my $dbh = Bugzilla->dbh; @@ -717,7 +717,6 @@ sub AppendComment ($$$;$$$) { # Comments are always safe, because we always display their raw contents, # and we use them in a placeholder below. trick_taint($comment); - my $whoid = &::DBNameToIdAndCheck($who); my $privacyval = $isprivate ? 1 : 0 ; $dbh->do(q{INSERT INTO longdescs (bug_id, who, bug_when, thetext, isprivate, work_time) @@ -968,7 +967,7 @@ sub CheckIfVotedConfirmed { "VALUES (?, ?, ?, ?, ?, ?)", undef, ($id, $who, $timestamp, $fieldid, '0', '1')); - AppendComment($id, &::DBID_to_name($who), + AppendComment($id, $who, "*** This bug has been confirmed by popular vote. ***", 0, $timestamp); -- cgit v1.2.3-24-g4f1b