To reprodude: Create a poll with two choices. Edit it, erase the two choices and add two new below. Then the "You must fill in at least two choices" error is fired.

CommentFileSizeAuthor
#3 advpoll_validate_fix.patch630 bytesChrisKennedy

Comments

ChrisKennedy’s picture

I tried those steps for a binary poll (after applying patch at http://drupal.org/node/199097) and didn't get that error - it added the new choices and deleted the removed choices. Are you sure about this bug?

anders.fajerson’s picture

The trick is to leave the two privously added choices there, but manually emptied (do not use the dynamic remove button). When you sumbit the second time you should have four choices in the form, but only the last two filled in.

ChrisKennedy’s picture

Status: Active » Needs review
StatusFileSize
new630 bytes

Here ya go.

anders.fajerson’s picture

Status: Needs review » Reviewed & tested by the community

Nooo! $_POST!! But should be fine :) Thanks.

ChrisKennedy’s picture

Status: Reviewed & tested by the community » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.