Cannot create single-choice poll using the GUI editor

AI-generated summary

A bug in the Discourse GUI editor prevents users from creating single-choice polls. When attempting to insert a poll, the “Insert poll” button is unclickable. nordize reported this issue in version 1.8.0.beta8.

A workaround is to change the poll type to “Multiple Choice”, insert the poll, and then change it back to “Single Choice”. However, this method does not actually produce a single-choice poll elijah.

RobMeade found that the issue is related to the poll type field not being properly set, similar to a “Please Select” option with an invalid value. The bug has been fixed in the latest version, as confirmed by Falco.

I’m sorry if I’m missing something and this isn’t bug. I’m using 1.8.0.beta8 and when I click the gear icon to create a single-choice poll I see this:
https://gyazo.com/91e932b524780baa2747f0dcffe7cc38

It doesn’t let me click on “Insert poll” (checking show who voted makes no differentce).

I can however create a poll manually by typing it in as:

[poll name=bla]
- Foo bar
- Bar foo
[/poll]
5개의 좋아요

It is reproducible (by me in Firefox) here. But if I change the poll type to Multiple Choice, it’s okay to insert, and then I can change it back and it’s okay to insert.

[poll max=2]
*  Enter one poll option per line 
*  Enter at least 2 options
[/poll]

But the poll inserted is not a single choice poll…

Indeed I should have also specified that if I choose “multiple choice” then it works (Chrome)

I was looking for a work-around and found that uncovered a different bug…

This occurred for myself after testing the bug fix to the ranged number issue. It would seem that the value that appears in the type field isn’t truly set, if you change the type and then change it back again it sets it properly.

A little like having a Please Select option, with no valid value, but with the wrong name in this case.

This is fixed on latest, thanks for the report.

4개의 좋아요

This topic was automatically closed after 24 hours. New replies are no longer allowed.