From 901d92851f0a1971fa446d5e7032ea42b0c9a2ba Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" <> Date: Wed, 2 Oct 2002 07:46:22 +0000 Subject: Bug 172010 voting broken on tip Regression from 43600 and 157756 2xr=bbaetz --- CGI.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CGI.pl') 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 " . -- cgit v1.2.3-24-g4f1b