Views Relationship / VotingAPI integration seems incorrect due to content_type

nicholasThompson - August 19, 2009 - 08:48
Project:Advanced Poll
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:needs work
Description

Vote's are being stored as content_type "advpoll".

The VotingAPI only has a relationship for "node" and "comment" types. This means when you define the Votes relationship, it tried to join in the votingapi_vote table using content_type="node". This causes no results (as the type is advpoll).

Solutions... I guess...
1) Change AdvPoll to store votes as "node"....
2) Add some Views integration to teach AdvPoll how to relate its votes to a poll node.

#1

ChrisKennedy - August 19, 2009 - 16:20

Hmm I haven't used the views integration code - just committed the patch for another developer that requested it. I'm not sure what the best way to fix this would be - changing the content type from advpoll to node seems like a big pain to fix everywhere, although maybe it's easiest than #2.

#2

SuperContra - October 5, 2009 - 01:46

I am also trying to relate Views relationship with Advance Poll but I can not do it.

 
 

Drupal is a registered trademark of Dries Buytaert.