diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2012-05-01 17:37:15 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2012-05-01 17:37:15 +0200 |
commit | b9ce8358e9822243421a37548e3d1f0371b97455 (patch) | |
tree | 37e983d92587ee30f93c35109200567e499ec491 /extensions/Voting | |
parent | 228c7bf9ea03a5faafe22f003e5d56da1b7b2162 (diff) | |
parent | 07c6bfa4cea83c8284b04add26729f552c93bafc (diff) | |
download | bugzilla-b9ce8358e9822243421a37548e3d1f0371b97455.tar.gz bugzilla-b9ce8358e9822243421a37548e3d1f0371b97455.tar.xz |
merged with bugzilla/4.2
Diffstat (limited to 'extensions/Voting')
-rw-r--r-- | extensions/Voting/Extension.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/extensions/Voting/Extension.pm b/extensions/Voting/Extension.pm index 26fb58fa3..3fb799bbf 100644 --- a/extensions/Voting/Extension.pm +++ b/extensions/Voting/Extension.pm @@ -499,7 +499,10 @@ sub _page_user { } } - $dbh->do('DELETE FROM votes WHERE vote_count <= 0'); + if ($canedit && $bug) { + $dbh->do('DELETE FROM votes WHERE vote_count = 0 AND who = ?', + undef, $who->id); + } $dbh->bz_commit_transaction(); $vars->{'canedit'} = $canedit; |