Closed (won't fix)
Project:
Advanced Poll
Version:
5.x-1.0-beta6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2008 at 02:04 UTC
Updated:
3 Feb 2013 at 20:06 UTC
A ranking poll that has had one or more write-ins submitted by voters presents future voters with more rankings to assign than choices to choose from if "Display write-in votes as choices for future voters" option is not selected for the poll.
In ranking.inc, I replaced
$num_choices = count($node->choice);
with
$num_choices = 0;
foreach($node->choice as $choice) {
if(!$choice['writein']) {
$num_choices++;
}
}
// add 1 if write-ins are enabled
if($node->writeins) {
$num_choices++;
}
but this does then yields too few rankings if "Display write-in votes as choices for future voters" option is selected.
Comments
Comment #1
pomliane commentedThis version of Advanced Poll is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.
This issue has been automagically closed by a script.