Hello,

Noticed that if I have two node reference fields for a content type referencing the same (another) content type only the first one is taken into account.

I use Views to subselect some nodes for the first fields, and some others for the 2nd field.

Comments

gilgabar’s picture

Status: Active » Closed (duplicate)

Your problem is related to your use of Views for the node references. That is not currently supported. Otherwise the case you describe works perfectly.

This appears to be another duplicate of #996336: Support Nodes that are referenced via a View. Please check existing issues before creating new ones.

giorgio79’s picture

Status: Closed (duplicate) » Active

Hello gilgabar,

I am pretty sure this is a separate issue.

I was able to get both referenced fields show up in the end, but only one of them was counted.

If you dont mind I set this back to active for now.

gilgabar’s picture

Status: Active » Postponed (maintainer needs more info)

I am unable to reproduce the problem you describe. I created content types "A" and "B". "A" has two separate node reference fields on it each of which is able to reference nodes of type "B". "B" has a node reference count field on it which will count references from both of the fields on "A". When I create a "B" node and then create an "A" node where each of the node reference fields on the "A" node reference the "B" node, the "B" node has a count of two as expected.

Please describe in detail what you are doing differently that you expect to work. As I have already mentioned, using Views to filter node references is not currently supported, so you should not expect that to work. Further discussion about adding that feature should take place in #996336: Support Nodes that are referenced via a View.

gilgabar’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)