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.
It looks like $node->morechoices never gets set in poll_form(). Thus, the number of possible choices is never increased when previewed with this option. The attached patch fixes this, but I suspect there's a better way.
Comment | File | Size | Author |
---|---|---|---|
poll_more_choices.patch | 452 bytes | javanaut | |
Comments
Comment #1
Dries CreditAttribution: Dries commentedA form API expert, please?
Comment #2
chx CreditAttribution: chx commented(22:19:44) chx: so we are agreed that for poll the best is to peek at $_POST['edit']['morechoices'] for comparison purposes?
(22:20:23) Adrian: yes
(22:20:42) chx: there is a patch for that, I set that then to commit
Comment #3
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #4
(not verified) CreditAttribution: commented