Keep reference bindings out of template.fields, in template.refHeads
This commit is contained in:
@@ -212,7 +212,7 @@ func checkOwnFamily(t *template) error {
|
||||
seen[n] = true
|
||||
for _, e := range renderEdges(n) {
|
||||
if a, isRef := refRead(n, e.label); isRef {
|
||||
if head, isTable := n.(*template).fields[a.key].(*table); isTable && head.family() == own.family() {
|
||||
if head, isTable := n.(*template).head(a.key).(*table); isTable && head.family() == own.family() {
|
||||
return e, head, true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user