Count of total votes placed allows non-integer values

Bug #618313 reported by Amy Hendrix
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pollka
Confirmed
Undecided
Unassigned

Bug Description

In admin.php, my vote count now reads "There were 2 voters registered and 0.5 vote sets were validated by email tokens" after some fiddling around with test data in the db. I suspect that this is less likely when there isn't someone monkeying around with the backend in mid-poll, but still, a vote set should be discrete (and would probably be simplest as a count of auth tokens validated rather than calculated from # of questions answered).

Revision history for this message
Melissa Draper (melissa) wrote :

I agree, that was a clumsy way of calculating it.

Changed in pollka:
status: New → Confirmed
Revision history for this message
Mohammad AbuShady (coalwater) wrote :

I don't know how it's supposed to be done cause i don't know the logic part here, but i found that its generated by calculating
number of votes / ( total questions +1 ), i don't mind fixing it if i understand what is supposed to be done instead.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.