diff options
author | jocuri%softhome.net <> | 2005-01-09 02:22:44 +0000 |
---|---|---|
committer | jocuri%softhome.net <> | 2005-01-09 02:22:44 +0000 |
commit | 2c8ad01edb6ac6e8f040e302c14aa0e1ad140ef2 (patch) | |
tree | cbd8ac8d62de2d48e16bc599f431c14aa9e24bc2 /CGI.pl | |
parent | 24871f00a5079571009d6bf48fe8469cebe8f253 (diff) | |
download | bugs-2c8ad01edb6ac6e8f040e302c14aa0e1ad140ef2.tar bugs-2c8ad01edb6ac6e8f040e302c14aa0e1ad140ef2.tar.gz bugs-2c8ad01edb6ac6e8f040e302c14aa0e1ad140ef2.tar.bz2 bugs-2c8ad01edb6ac6e8f040e302c14aa0e1ad140ef2.tar.xz bugs-2c8ad01edb6ac6e8f040e302c14aa0e1ad140ef2.zip |
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.pl | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) = @_; |