Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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) {
to
$i = 0;
foreach ($node->choice as $choice) {
since $i is used above that and not reset.
Comments
Comment #1
Dries CreditAttribution: Dries commentedIIRC this has been fixed in the DRUPAL-4-6 branch. Re-open if not.
Comment #2
(not verified) CreditAttribution: commentedComment #3
mr700 CreditAttribution: mr700 commentedWith 2.6.3 this is not fixed.
Comment #4
mr700 CreditAttribution: mr700 commenteddrupal-4.6.3.tar.gz wanted to say :)
Comment #5
robertgarrigos CreditAttribution: robertgarrigos commentedI have been 'playing' with my polls on a 4.6.3 and cannot reproduce your problem. Can you explain what exactly you do to have this problem?
Comment #6
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedNo feedback, apparently not an issue, maybe theme specific.
Comment #7
(not verified) CreditAttribution: commented