Views for Anonymous Users not joined correctly

quicksketch - September 30, 2009 - 17:58
Project:Voting API
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Currently using the "Current user" option while doing joins to VotingAPI data tables does not take into account the user's IP address. Since there can be many votes for the 0 UID, only the first anonymous user's vote ever shows up in generated Views.

I haven't tested this patch, but it seems like it's the general approach needed to correct this for anonymous users.

A better explanation of the problem and how to reproduce it is at http://drupal.org/node/592266.

AttachmentSize
votingapi_views_anonymous.patch1.05 KB

#1

ChrisRut - September 30, 2009 - 18:01

subscribe

#2

ChrisRut - September 30, 2009 - 19:10

Attached is a non-dev patch for 6.x-2.3
Patch worked for me BTW, Thanks quicksketch :-)

AttachmentSize
592312-votingapi_views_anonymous.patch 904 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.