From cb7e19b406a9684d375a06f7c92f9988b657ef76 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 10 Jun 2007 15:18:42 +0000 Subject: =?UTF-8?q?Bug=20383903:=20Voting=20for=20a=20bug=20gives=20a=20ta?= =?UTF-8?q?ble=20lock=20error=20-=20Patch=20by=20Fr=C3=83=C2=A9d=C3=83?= =?UTF-8?q?=C2=A9ric=20Buclin=20=20r=3Dtimeless=20a=3DL?= =?UTF-8?q?pSolit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- votes.cgi | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'votes.cgi') 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, -- cgit v1.2.1