]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 351300: votes.cgi crashes if your vote is the one confirming a bug - Patch by...
authorlpsolit%gmail.com <>
Tue, 5 Sep 2006 19:49:40 +0000 (19:49 +0000)
committerlpsolit%gmail.com <>
Tue, 5 Sep 2006 19:49:40 +0000 (19:49 +0000)
votes.cgi

index f30eebe3cab417ce486914833912fd9dc2c8a53a..43e359393f73a21b1b88d8c6a4041175277dc55b 100755 (executable)
--- a/votes.cgi
+++ b/votes.cgi
@@ -358,7 +358,7 @@ sub record_votes {
     $dbh->bz_unlock_tables();
 
     $vars->{'type'} = "votes";
-    $vars->{'mailrecipients'} = { 'changer' => $who };
+    $vars->{'mailrecipients'} = { 'changer' => Bugzilla->user->login };
 
     foreach my $bug_id (@updated_bugs) {
         $vars->{'id'} = $bug_id;