Exclude nil balloters from vote phase participants
The `user_id` can be `nil` for ballots.
This commit is contained in:
@@ -65,7 +65,7 @@ class Budget::Stats
|
||||
end
|
||||
|
||||
def balloters
|
||||
budget.ballots.where("ballot_lines_count > ?", 0).pluck(:user_id)
|
||||
budget.ballots.where("ballot_lines_count > ?", 0).pluck(:user_id).compact
|
||||
end
|
||||
|
||||
def poll_ballot_voters
|
||||
|
||||
Reference in New Issue
Block a user