liquid_feedback_frontend
diff app/main/initiative/_show_voting.lua @ 541:f7bc22fbf660
Fixed displaying voters with abstention in some cases
author | bsw |
---|---|
date | Sun May 27 23:03:58 2012 +0200 (2012-05-27) |
parents | 256d9be75916 |
children | 8b6bc2958126 |
line diff
1.1 --- a/app/main/initiative/_show_voting.lua Mon May 21 21:18:09 2012 +0200 1.2 +++ b/app/main/initiative/_show_voting.lua Sun May 27 23:03:58 2012 +0200 1.3 @@ -27,8 +27,8 @@ 1.4 :left_join("vote", nil, { "vote.initiative_id = ? AND vote.member_id = member.id", initiative.id }) 1.5 :add_field("direct_voter.weight as voter_weight") 1.6 :add_field("coalesce(vote.grade, 0) as grade") 1.7 - :join("initiative", nil, "initiative.id = vote.initiative_id") 1.8 - :join("issue", nil, "issue.id = initiative.issue_id") 1.9 + :left_join("initiative", nil, "initiative.id = vote.initiative_id") 1.10 + :left_join("issue", nil, "issue.id = initiative.issue_id") 1.11 } 1.12 } 1.13