summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2002-10-02 09:46:22 +0200
committerbugreport%peshkin.net <>2002-10-02 09:46:22 +0200
commit901d92851f0a1971fa446d5e7032ea42b0c9a2ba (patch)
treea2262be17d8140bf616b5ad00aa7f307bdaabbe1 /CGI.pl
parentbaada6e8807e84dfa22a9fecdd4885839e9cab2d (diff)
downloadbugzilla-901d92851f0a1971fa446d5e7032ea42b0c9a2ba.tar.gz
bugzilla-901d92851f0a1971fa446d5e7032ea42b0c9a2ba.tar.xz
Bug 172010 voting broken on tip
Regression from 43600 and 157756 2xr=bbaetz
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/CGI.pl b/CGI.pl
index 5360d155f..f4a9813f0 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -904,7 +904,7 @@ sub CheckIfVotedConfirmed {
SendSQL("SELECT bugs.votes, bugs.bug_status, products.votestoconfirm, " .
" bugs.everconfirmed " .
"FROM bugs, products " .
- "WHERE bugs.bug_id = $id AND products.product_id = bugs.product_id");
+ "WHERE bugs.bug_id = $id AND products.id = bugs.product_id");
my ($votes, $status, $votestoconfirm, $everconfirmed) = (FetchSQLData());
if ($votes >= $votestoconfirm && $status eq $::unconfirmedstate) {
SendSQL("UPDATE bugs SET bug_status = 'NEW', everconfirmed = 1 " .