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

anders.fajerson’s picture

(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.

ChrisKennedy’s picture

Status: Active » Fixed

Fixed 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.

Anonymous’s picture

Status: Fixed » Closed (fixed)