This issue is taken from the secondary issue reported in http://drupal.org/node/139085.

pollfield_menu() attempts to return an array of nids from {pollfield} and proceeds to test if arg(1) from /node/$nid is in the the array of nids in {pollfield}. However, to extract the array of nids from {pollfield} the module author used db_fetch_array(). This function does not return the whole array of results but rather just the first result.

I took a different approach with the attached patch and simply tested whether there was a row in {pollfield} for the nid in question via arg(1).

CommentFileSizeAuthor
pollfield.module.new-issue.patch936 bytesjaydub

Comments

karens’s picture

Status: Needs review » Fixed

Fixed somewhat differently in latest commit.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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