Closed (fixed)
Project:
Advanced Poll
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2006 at 09:36 UTC
Updated:
9 Jan 2007 at 04:30 UTC
I guess this is a validating issue; it's shouldn't be possible to give a choice rank > n if rank < n hasn't been provided.
warning: Division by zero in W:\www\drupal-5-0\sites\test.localhost\modules\advpoll\modes\ranking.inc on line 332.
Comments
Comment #1
anders.fajerson commented(Tags messed up the prev message)
I guess this is a validating issue; it's shouldn't be possible to give a choice rank > n if ranks < n wasn't provided.
Error message:
warning: Division by zero in W:\www\drupal-5-0\sites\test.localhost\modules\advpoll\modes\ranking.inc on line 332.
Comment #2
ChrisKennedy commentedFixed here - http://drupal.org/cvs?commit=48954
We can handle a user voting that way so there's no reason to prevent them from doing so. For non-positional algorithms such as condorcet it doesn't matter at all, whereas for borda count or IRV the algorithm might want to automatically translate the lowest vote as the highest ranking for that user. Even this isn't required though.
Comment #3
(not verified) commented