aboutsummaryrefslogtreecommitdiffstats
path: root/extensions/Voting/Extension.pm
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-08-28 17:32:02 +0000
committerDavid Lawrence <dkl@mozilla.com>2015-08-28 19:34:13 +0000
commitafe64bdb8c1fe9a1b2506223275b829df2898f4a (patch)
tree42b7cb1b2168d6629c98351abb5596d73f9ef1e8 /extensions/Voting/Extension.pm
parentc85e0dcf19a923070fd6bbc7d0431dab06a67927 (diff)
downloadbugs-afe64bdb8c1fe9a1b2506223275b829df2898f4a.tar
bugs-afe64bdb8c1fe9a1b2506223275b829df2898f4a.tar.gz
bugs-afe64bdb8c1fe9a1b2506223275b829df2898f4a.tar.bz2
bugs-afe64bdb8c1fe9a1b2506223275b829df2898f4a.tar.xz
bugs-afe64bdb8c1fe9a1b2506223275b829df2898f4a.zip
Bug 1171811: [Voting] When a user votes enough to confirm an individual bug, the bug does not change to CONFIRMED properly
r=LpSolit,a=simon
Diffstat (limited to 'extensions/Voting/Extension.pm')
-rw-r--r--extensions/Voting/Extension.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/Voting/Extension.pm b/extensions/Voting/Extension.pm
index 8009f16bb..b125933ce 100644
--- a/extensions/Voting/Extension.pm
+++ b/extensions/Voting/Extension.pm
@@ -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;
}