From 5e6db79446091a37986d1fd085546f09d0ccee80 Mon Sep 17 00:00:00 2001 From: Antti Villberg Date: Tue, 30 May 2017 14:33:02 +0300 Subject: [PATCH] Fixes to variable implementations refs #7251 Change-Id: I955e563f7b78496968305fe5b3bdc23255194db8 --- .../db/layer0/variable/StandardGraphChildVariable.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/StandardGraphChildVariable.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/StandardGraphChildVariable.java index 17fc21ebb..cffd74727 100644 --- a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/StandardGraphChildVariable.java +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/StandardGraphChildVariable.java @@ -264,7 +264,9 @@ public class StandardGraphChildVariable extends AbstractChildVariable { protected VariableMap getPossibleChildVariableMap(ReadGraph graph) throws DatabaseException { if(resource == null) return All.standardChildDomainChildren; - return graph.getPossibleRelatedValue2(resource, Layer0.getInstance(graph).domainChildren, this); + Resource domainChildren = Layer0.getInstance(graph).domainChildren; + return graph.getPossibleRelatedValue2(resource, domainChildren, + new StandardGraphPropertyVariable(graph, this, domainChildren)); } @Override -- 2.47.1