[drupal-devel] [bug] Poll not inserting correctly, options missing on edit

rbarreca drupal-devel at drupal.org
Fri May 13 00:36:55 UTC 2005

Issue status update for http://drupal.org/node/22715

 Project:      Drupal
 Version:      4.6.0
 Component:    poll.module
 Category:     bug reports
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  rbarreca
 Updated by:   rbarreca
 Status:       patch

When I would enter a poll into the submission queue it worked fine, but
then when I went back to edit it, the choice labels were not
displaying.  I noticed that the chorder on the poll_insert() function
was not working as it should.  This fix should do it:

Change on line 177 or so:
foreach ($node->choice as $choice) {
  $i = 0;
  foreach ($node->choice as $choice) {

since $i is used above that and not reset.


More information about the drupal-devel mailing list