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.
When I want to Edit in a poll "Add another choice"
Drupal save a new choice but without text
example
Do ..................... ?
1-Yes
2-No
when trying edit in this poll and add a new choice it will be
Do ..................... ?
1-Yes
2-No
3-
whit out saving a text to the new poll
Comment | File | Size | Author |
---|---|---|---|
#8 | 1244784-poll-options-8.patch | 1.83 KB | marcingy |
#6 | 1244784-poll-options-6.patch | 2.12 KB | marcingy |
#3 | poll.jpg | 23.35 KB | ahm_hefni |
empty answer.jpg | 7.99 KB | ahm_hefni |
Comments
Comment #1
Shyamala CreditAttribution: Shyamala commentedUnable to replicate this in Drupal 7.7. More over in Drupal 7.7 the button to add choices reads More choices and not Add a new choice.
Comment #2
catchLooks like this needs more information.
Comment #3
ahm_hefni CreditAttribution: ahm_hefni commentedAbout my steps
1- After downloading drupal 7.7 and enable the poll module
2- I Added a new poll
what is your Favourite color?
1-white
2-green
then saving the poll
after that I want to add more choice "blue"
so I press Edit then More Choices and add the blue in the last textbox
after saving the text of the last choice "blue" is empty as the Image
I hope you can help me
Comment #4
marcingy CreditAttribution: marcingy commentedThis issue can be replicated following the steps above on the second edit no text is saved for any of the poll choices although the choices themselves do appear on the page as radio buttons. The values themselves are not present in the database.
Comment #5
xjmI duplicated this bug using the steps to reproduce in #3.
Comment #6
marcingy CreditAttribution: marcingy commentedSeems like it was a bad merge query. Patch and test provided.
Comment #7
xjmSome leftover test code. :)
Functionally, I confirmed that the patch resolves the issue.
13 days to next Drupal core point release.
Comment #8
marcingy CreditAttribution: marcingy commenteddoh
Comment #9
xjmI confirmed that:
Comment #10
ahm_hefni CreditAttribution: ahm_hefni commentedThanks,
Comment #11
marcingy CreditAttribution: marcingy commentedThis hasn't been committed to core yet it needs to stay open until it is!
Comment #12
webchickCommitted and pushed to 8.x and 7.x, with a minor edit to the comment ("went -> when").