Action Performed:
1. Log in to the site
2. Add a poll with comments
3. Vote on the poll
4. Type comment title and body
5. Preview the comment (must do this)
6. Post the comment

Expected Result:
Vote results remains unchanged after posting the comment

Actual Result:
Vote results canceled. Comment is not posted.

Comments

mstef’s picture

Interesting.. if you set poll_cancel_form() to return NULL, causing the "Cancel your vote" button to not appear, then pressing "Save" on a comment after previewing it, simply reloads the page, and nothing is saved.

mstef’s picture

If you haven't already voted on the poll and follow these steps, you get the error:

"Your vote could not be recorded because you did not select any of the choices."

nbtechnologies’s picture

We are experiencing the exact same issues with polls.

amateescu’s picture

Title: Vote cancelled if comment previewed and posted on the node » The comment preview form doesn't account for nodes that already contain a form
Version: 7.9 » 8.x-dev
Component: poll.module » comment.module

I checked out this issue and the problem is in comment.module, which embeds a node_view() in it's comment_reply() form. Needless to say that if the node contains a form element, all hell breaks loose :)

jonathanshaw’s picture

Issue summary: View changes
Issue tags: +Needs steps to reproduce

Very old issue, needs up to date steps to reproduce (if it is still an issue)

amateescu’s picture

Version: 8.0.x-dev » 7.x-dev

The Poll module is no longer part of Drupal core 8.x, moving back to 7.x.