Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
mstef CreditAttribution: mstef commentedInteresting.. 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.
Comment #2
mstef CreditAttribution: mstef commentedIf 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."
Comment #3
nbtechnologies CreditAttribution: nbtechnologies commentedWe are experiencing the exact same issues with polls.
Comment #4
amateescu CreditAttribution: amateescu commentedI 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 :)
Comment #5
jonathanshawVery old issue, needs up to date steps to reproduce (if it is still an issue)
Comment #6
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedThe Poll module is no longer part of Drupal core 8.x, moving back to 7.x.