diff --git a/votes.cgi b/votes.cgi index 43a693b52b7b15c518b7ade893946041be3c2260..9805ae48ebf7bdc4c8aecf206f04dfb45ebf3b23 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,