Poll option with 0 (zero) doesn't appear in poll list

This discussion is related to the Discussion Polls addon.
edited March 5 in Development

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

Comments

  • Work-around: use "none"

  • Thank you but my Customer wants to habe 0. ist there any code that I can change.

  • rbrahmsonrbrahmson "You may say I'm a dreamer / But I'm not the only one" NY ✭✭✭
    edited March 6

    Try these two simple changes:

    Line 363 to:

    if($Option != 0 && trim($Option) == FALSE) {

    and line 452 to:

    if($Option != 0 && trim($Option) == FALSE) {

  • rbrahmsonrbrahmson "You may say I'm a dreamer / But I'm not the only one" NY ✭✭✭

    @vanillawhisky - did it work for you?

Sign In or Register to comment.