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.

CommentFileSizeAuthor
poll_more_choices.patch452 bytesjavanaut
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dries’s picture

A form API expert, please?

chx’s picture

Status: Needs review » Reviewed & tested by the community

(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

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)