summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2005-01-09 03:22:44 +0100
committerjocuri%softhome.net <>2005-01-09 03:22:44 +0100
commit2c8ad01edb6ac6e8f040e302c14aa0e1ad140ef2 (patch)
treecbd8ac8d62de2d48e16bc599f431c14aa9e24bc2 /CGI.pl
parent24871f00a5079571009d6bf48fe8469cebe8f253 (diff)
downloadbugzilla-2c8ad01edb6ac6e8f040e302c14aa0e1ad140ef2.tar.gz
bugzilla-2c8ad01edb6ac6e8f040e302c14aa0e1ad140ef2.tar.xz
Patch for bug 277013: provides a fix for the SQL error that appears when a user's vote confirms a bug; patch by Frédéric Buclin <LpSolit@netscape.net>, r=wurblzap, a=justdave.
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/CGI.pl b/CGI.pl
index 19ae5da49..ecfa670a4 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -250,6 +250,7 @@ sub CheckIfVotedConfirmed {
"FROM bugs, products " .
"WHERE bugs.bug_id = $id AND products.id = bugs.product_id");
my ($votes, $status, $votestoconfirm, $everconfirmed) = (FetchSQLData());
+ my $ret = 0;
if ($votes >= $votestoconfirm && $status eq $::unconfirmedstate) {
SendSQL("UPDATE bugs SET bug_status = 'NEW', everconfirmed = 1 " .
"WHERE bug_id = $id");
@@ -273,9 +274,10 @@ sub CheckIfVotedConfirmed {
$template->process("bug/process/results.html.tmpl", $vars)
|| ThrowTemplateError($template->error());
+ $ret = 1;
}
PopGlobalSQLState();
-
+ return $ret;
}
sub LogActivityEntry {
my ($i,$col,$removed,$added,$whoid,$timestamp) = @_;