Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2011 at 20:44 UTC
Updated:
12 Apr 2011 at 19:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
dave reidHere is the 'related content' view mimicking what we have in development.
http://palantir.privatepaste.com/1fdf587894
The meat is from the 'Taxonomy term ID' argument that uses PHP code for the default value:
There is also a Node ID argument so that the current node being used to compare its terms is excluded from the results.
Comment #2
dawehnerNot sure whether this is related to this issue, but this fixes at least one problem for me
#955464: Missing join: 'taxonomy_term_data' creating a Glossary view based on taxonomy
Comment #3
dawehnerHere is a similar query in d6
You can get rid of the joins by de-selecting "reduce duplicates". Not sure what for problems this might cause.
Comment #4
iamjon commentedChanging status. Based on comment #2
Comment #5
dawehnerCommited the fix.
Thanks #iamjon
But the initial issue itself can't be fixed. Ask earl for the reasons of the joins, but they have to be there to work as expected on all possible instances...
Comment #6
merlinofchaos commentedIt's an unfortunate consequence of many to one relationships. It's pretty difficult to compare a group that will generate multiple records to another group.
This looks like it is as fixed as it can be.