in a view, I want to retreive 2 differents types of nodes :

  1. a type of node [A] that don't use a relationship
  2. a second type of node [B-relation] that uses a relationship to show up a field only present in a referenced content ..a third type of node.

The relation ship of [B-relation] in view is configured to be not required.

As administrator, the result is perfect ! :-) I can see both types of node [A] and [B-relation].
As anonymous the [A] type anonymous are not showing up :-(

If I remove the relationship, then [A] items are coming back... but I cant retreive the related field in [B-relation].

I experienced this issue in two views : a calendar and a viewslideshow.

It works like if the check box 'require this relation ship' was checked... but it's not.

If anybody has an idea... I go on searching...

Comments

dave.erwin’s picture

gilsbert’s picture

It might be a duplicate issue but I have the very same situation.
+1 asking a solution.

xqbzzr’s picture

Yes, same here!

Damien Tournoud’s picture

Status: Active » Closed (duplicate)
kari.nies’s picture

I was having the same problem. I installed the References module and used a node reference in place of an entity reference and I am seeing the exact same behavior. Looks the problem might actually be more generally in view relationships and not specifically related to entity references.

kari.nies’s picture

As a follow up. Did a clean install and found that the problem only appeared when I added the OG groups access module. On searching the group access pages I found this post:
https://drupal.org/node/1964246
Follow the link in the last comment to the patch at #89. It worked for me. You might want to give it a try.

gilsbert’s picture

Patch #89 at https://drupal.org/node/1349080 has a minor bug reported at #113 and confirmed at #138.

As far I could understand they focused on D8's patch and the D7's backport patch is still pending. :-(

gilsbert’s picture

Kari, there is a new patch #149 on https://drupal.org/node/1349080.

Did you try this one?

aniebel’s picture

Issue summary: View changes

I tried patch #149 and it did not work for me. Anonymous users cannot see a referenced entity in a View or even on a node for that matter.

gilsbert’s picture

Try patch #195 at https://drupal.org/node/1349080 .
It did work for me (just a small problem with the test module but I'm sure they will fix this detail very soon).
Regards,
Gilsberty

aniebel’s picture

Patch #195 does not work for me either. Still cannot see entity reference as anon.

gilsbert’s picture

Hi. I will send you a personal email to combine a way to reproduce your scenario in a test site.
Regards,
Gilsberty

aniebel’s picture

I am still having this issue. Has there been any resolution? Thanks!

andrew@oscailte.org’s picture

Patch #231 at https://www.drupal.org/node/1349080 worked for me on Drupal 7.38 with Entity Reference 7.x-1.1 and Views 7.x-3.11