Closed (fixed)
Project:
Advanced Poll
Version:
7.x-3.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2014 at 08:12 UTC
Updated:
1 Nov 2015 at 03:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
marco van bemmel commentedComment #2
tripper54 commentedComment #3
neerajskydiver commentedThe function "advpoll_validate_max_choices($element, &$form_state, $form)" in the module file was checking the choices, which was set to 2, now this is updated with the 1 in the attached patch which resolves this error.
Comment #4
tripper54 commentedWe can't just reduce the value to 1. The purpose of this check is to stop users creating polls with less than 2 choices.
We need to find out why the choices array is not properly populated when this check is run when used with this msnf module.
Comment #5
neerajskydiver commentedyes, choices array is not properly populated when used with msnf module.
the $form_state['input'] array is empty, their are similar issues with the msnf module.
but the $form_state['values'] array in not empty, this contains the data of the "advpoll_choice", so this is been applied in the attached patch, which resolves this issue.
Comment #6
tripper54 commentedGreat, that seems to do the trick. Committed!