I doubt the current implementation can handle generic directed acyclic graphs. We should make sure a node is not inserted twice in the same tree, and thus forbid cardinality != 1 for treefields.

Comments

fgm’s picture

Difficult to implement a reasonable UI for this, so the most reasonable implementation is likely just hook_field_update_forbid().

fgm’s picture

Status: Active » Needs review
damien tournoud’s picture

Status: Needs review » Reviewed & tested by the community

Sounds good.

fgm’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 7.x-1.x, thanks.

Status: Fixed » Closed (fixed)

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