Poll "Add More Choices" feature not working

javanaut - October 27, 2005 - 20:17
Project:Drupal
Version:x.y.z
Component:poll.module
Category:bug report
Priority:minor
Assigned:javanaut
Status:closed
Description

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.

AttachmentSize
poll_more_choices.patch452 bytes

#1

Dries - November 1, 2005 - 10:19

A form API expert, please?

#2

chx - November 1, 2005 - 21:21
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

Dries - November 2, 2005 - 08:58
Status:reviewed & tested by the community» fixed

Committed to HEAD. Thanks.

#4

Anonymous - November 16, 2005 - 09:02
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.