]> 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:51:14 +0000 (19:51 +0000)
committerlpsolit%gmail.com <>
Tue, 5 Sep 2006 19:51:14 +0000 (19:51 +0000)
votes.cgi

index 48064ddada2d529195006b91d590941269406499..8a7dbf8c53f2c3f5967f132050e4e87aa6c0117f 100755 (executable)
--- a/votes.cgi
+++ b/votes.cgi
@@ -361,7 +361,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;