Closed (fixed)
Project:
Pollfield
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2008 at 11:20 UTC
Updated:
7 Mar 2008 at 18:21 UTC
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).
| Comment | File | Size | Author |
|---|---|---|---|
| pollfield.module.new-issue.patch | 936 bytes | jaydub |
Comments
Comment #1
karens commentedFixed somewhat differently in latest commit.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.