HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Poll option with 0 (zero) doesn't appear in poll list
vanillawhisky
New
I need a small help on Discussion Polls addon. If my poll option is empty, it doesn't shows as question and that's right but if I put 0 (zero) then also it doesn't shows on preview. That means it acts as empty field. Is there any way to solve this problem.
I also need 0 option in examples like this:
How much beer you drink per week (all in liters):
options: 0, 1-2, 2-4 etc (and 0 doesn't appear in the list)
I appreciate your HELP.
Regards
0
Comments
Work-around: use "none"
Thank you but my Customer wants to habe 0. ist there any code that I can change.
Try these two simple changes:
Line 363 to:
if($Option != 0 && trim($Option) == FALSE) {
and line 452 to:
if($Option != 0 && trim($Option) == FALSE) {
@vanillawhisky - did it work for you?