Multiple-polls are not displaying correctly

It seems that if you create 2 or more polls within the same post, only the last poll shows up after posting it. While you’re editing the poll, it does show up correctly in the preview window.

It’s doing this on the current version running on the cloud-hosted version of Discourse, as well as here on meta, and on try.discourse.org.

Example…

Pick a number below:

  • 1
  • 2
  • 3

0 voters

Pick a letter below:

  • A
  • B
  • C

0 voters

4 Likes

Hmm weird we must have regressed here @zogstrip

1 Like

I’m already on it :wink:

3 Likes

Just pushed a fix, will be deployed here shortly. Thanks @VNVJeep for the report :thumbsup:

https://github.com/discourse/discourse/commit/28b7ef7142135e9596989d7d095db517821eafe0

4 Likes

Absolutely, @zogstrip! Thanks for the lightning fast turnaround on this! Will this also be pushed to those of us on your hosted cloud solution?

We usually deploy latest version to our customers once a week (unless there’s a security fix).

2 Likes

I added an acceptance tests for Polls as well.

https://github.com/discourse/discourse/commit/6b4ef86ac4823e99f6917498fc121d176e8ae45b

5 Likes