Download & Extend

Poll "Add More Choices" feature not working

Project:Drupal core
Version:x.y.z
Component:poll.module
Category:bug report
Priority:minor
Assigned:javanaut
Status:closed (fixed)

Issue Summary

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.

AttachmentSizeStatusTest resultOperations
poll_more_choices.patch452 bytesIgnored: Check issue status.NoneNone

Comments

#1

A form API expert, please?

#2

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

#3

Status:reviewed & tested by the community» fixed

Committed to HEAD. Thanks.

#4

Status:fixed» closed (fixed)