The problem is that the relationship to the field data table does not check for entity type or the deleted boolean. I found a solution basically identical to http://drupal.org/node/1321210. It involves adding the "join extra" element to the relationship definition. Patch attached.

Comments

fearlsgroove’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new802 bytes

This fixed the issue for me .. the gist of the problem is that you need to filter relationships on entity type in addition to the target id in the case that you've used the field on multiple entity types.

Attached patch is just a white space fix.

czigor’s picture

Works for me! Views itself has the same solution in #1321210: Join condition missing for Field API table(s) which implies that this is the way to go.

geek-merlin’s picture

Priority: Normal » Major

If this is still broken, i call it major.

damien tournoud’s picture

Status: Reviewed & tested by the community » Fixed

Merged into 7.x-1.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.