How to reproduce: Create a poll. Fill in the question field and two choices. Click preview. The question field is now under the choice fields.

CommentFileSizeAuthor
#1 poll_weights.patch830 bytesquicksketch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

FileSize
830 bytes

Nice catch fajerstarter. I was a little hesitant about setting two weights to the same value in poll, let's just make them distinct so we're ensured this doesn't happen.

quicksketch’s picture

Status: Active » Needs review
anders.fajerson’s picture

Status: Needs review » Reviewed & tested by the community

Ready.

anders.fajerson’s picture

Ready = I tested it and it fixes the problem (sorry for not mentioning that).

cosmicdreams’s picture

I think my issue is related. I created a poll with the question and 2 choices and saved it. I now have this error that persists:

notice: Trying to get property of non-object in C:\siteroot\drupal\drupal6\modules\poll\poll.module on line 127.

I also am unable to unpublish or delete the errant poll

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Undefined objects are not related to form ordering, sorry. Comitted this patch, thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)