Closed (fixed)
Project:
Advanced Poll
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2009 at 20:55 UTC
Updated:
1 Mar 2009 at 00:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
ChrisKennedy commented1300 polls... not too shabby :P Thanks for working on this. In the last modification did you have a reason for taking out the IP placeholder for manual votes?
Comment #2
gddYeah I'm bringing an existing site into Drupal, and it has a lot user-generated content including polls that include HTML in the choices, which is what led me to advpoll.
The new votingapi_votes table doesn't include the hostname field anymore, so I pulled that out of the queries.
Comment #3
ChrisKennedy commentedWell it just got renamed to vote_source actually, to be a little more generic.
Comment #4
gddAh hah! I did kind of whip through this pretty quick. New patch attached which restores the IP placeholder and renames the field in votingapi_votes.
Comment #5
ChrisKennedy commentedI tested it out and db_next_id() doesn't exist in D6 - see http://drupal.org/node/114774#db_last_insert_id . Looks like we need to either use drupal_write_record, or more cleanly, votingapi_add_votes().
Comment #6
gddActually we don't need that at all anymore since D6 uses autoincrement fields to generate keys rather than db_next_id(). I don't know how I left that in, I'm sure I had removed it. Anyways, new patch attached.
Comment #7
ChrisKennedy commentedThanks, committed - http://drupal.org/cvs?commit=171793