summaryrefslogtreecommitdiffstats
path: root/votes.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-06-10 17:18:42 +0200
committerlpsolit%gmail.com <>2007-06-10 17:18:42 +0200
commitcb7e19b406a9684d375a06f7c92f9988b657ef76 (patch)
tree7cf9e95724a15e04a03c8d80a3f24e710f75ca68 /votes.cgi
parente39ea822a5dec23ea34c7784337247b18946a881 (diff)
downloadbugzilla-cb7e19b406a9684d375a06f7c92f9988b657ef76.tar.gz
bugzilla-cb7e19b406a9684d375a06f7c92f9988b657ef76.tar.xz
Bug 383903: Voting for a bug gives a table lock error - Patch by Frédéric Buclin <LpSolit@gmail.com> r=timeless a=LpSolit
Diffstat (limited to 'votes.cgi')
-rwxr-xr-xvotes.cgi7
1 files changed, 3 insertions, 4 deletions
diff --git a/votes.cgi b/votes.cgi
index 43a693b52..9805ae48e 100755
--- a/votes.cgi
+++ b/votes.cgi
@@ -158,7 +158,7 @@ sub show_user {
my $vote_list =
$dbh->selectall_arrayref('SELECT votes.bug_id, votes.vote_count,
- bugs.short_desc, bugs.bug_status
+ bugs.short_desc
FROM votes
INNER JOIN bugs
ON votes.bug_id = bugs.bug_id
@@ -168,7 +168,7 @@ sub show_user {
undef, ($who, $product->id));
foreach (@$vote_list) {
- my ($id, $count, $summary, $status) = @$_;
+ my ($id, $count, $summary) = @$_;
$total += $count;
# Next if user can't see this bug. So, the totals will be correct
@@ -179,8 +179,7 @@ sub show_user {
push (@bugs, { id => $id,
summary => $summary,
- count => $count,
- opened => is_open_state($status) });
+ count => $count });
}
$onevoteonly = 1 if (min($product->votes_per_user,