]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1171811: [Voting] When a user votes enough to confirm an individual bug, the...
authorDavid Lawrence <dkl@mozilla.com>
Fri, 28 Aug 2015 17:32:02 +0000 (17:32 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Fri, 28 Aug 2015 19:34:13 +0000 (19:34 +0000)
r=LpSolit,a=simon

extensions/Voting/Extension.pm

index 8009f16bbcceffb1858a1b7d1f538426df4122f4..b125933ce5e19326ca7da359746aaa45f21f3d55 100644 (file)
@@ -610,7 +610,7 @@ sub _update_votes {
         $sth_getVotes->execute($id);
         my $v = $sth_getVotes->fetchrow_array || 0;
         $sth_updateVotes->execute($v, $id);
-
+        $bugs{$id}->{votes} = $v if $bugs{$id};
         my $confirmed = _confirm_if_vote_confirmed($bugs{$id} || $id);
         push (@updated_bugs, $id) if $confirmed;
     }