HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

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

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

  • Options
    KasparKaspar Moderator

    Work-around: use "none"

  • Options

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

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

    Try these two simple changes:

    Line 363 to:

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

    and line 452 to:

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

  • Options
    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.