diff options
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-x | post_bug.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/post_bug.cgi b/post_bug.cgi index c1af2a5d0..a2516c321 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -298,7 +298,7 @@ $comment = trim($comment); # OK except for the fact that it causes e-mail to be suppressed. $comment = $comment ? $comment : " "; -$sql .= "$::userid, $sql_timestamp, "; +$sql .= $user->id . ", $sql_timestamp, "; # Time Tracking if (UserInGroup(Param("timetrackinggroup")) && @@ -443,10 +443,10 @@ $dbh->do("UPDATE bugs SET creation_ts = ? WHERE bug_id = ?", $dbh->bz_unlock_tables(); # Email everyone the details of the new bug -$vars->{'mailrecipients'} = {'changer' => Bugzilla->user->login}; +$vars->{'mailrecipients'} = {'changer' => $user->login}; $vars->{'id'} = $id; -my $bug = new Bugzilla::Bug($id, $::userid); +my $bug = new Bugzilla::Bug($id, $user->id); $vars->{'bug'} = $bug; ThrowCodeError("bug_error", { bug => $bug }) if $bug->error; |