Hi,
I noticed when a content type is group and group content, it's possible to assign the audience group of the parent group to the children and also as itself.
ex:
I created Group A
I created Group B with audience Group A
if I edit Group A in my groups in audience field I have Group A and Group B, I choose Group B.
Now if I create a function to get all children and subchildren of a group I will have an infinite loop.
Group A is child of Group B who is child of Group A who is child of group B who is ...
And same if I choose group A
Group A is child of Group A who is child of Group A who is child of group A who is ...
Is it possible to remove the node itself and this children from the audience field to prevent this infinite loop ?
Regards