From: Antti Villberg Date: Tue, 15 Aug 2017 03:45:51 +0000 (+0300) Subject: Wrong context variable to domainChildren query in StandardGraphProper.. X-Git-Tag: v1.31.0~241 X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=commitdiff_plain;h=564cbf99b9cc2cd4ce3a645c206c9742d8123035;hp=ad774bc1d0784c944181a4ebf671688820107e04 Wrong context variable to domainChildren query in StandardGraphProper.. refs #7431 Change-Id: Iabbfd8a45ad05918b5c678c20a07d1deea7b3fb0 --- diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/StandardGraphPropertyVariable.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/StandardGraphPropertyVariable.java index 13977a0e5..9d7fded69 100644 --- a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/StandardGraphPropertyVariable.java +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/StandardGraphPropertyVariable.java @@ -401,7 +401,9 @@ public class StandardGraphPropertyVariable extends AbstractPropertyVariable { protected VariableMap getPossibleChildVariableMap(ReadGraph graph) throws DatabaseException { if(represents == null) return All.standardPropertyDomainChildren; - return graph.getPossibleRelatedValue2(represents, Layer0.getInstance(graph).domainChildren, this); + Resource domainChildren = Layer0.getInstance(graph).domainChildren; + return graph.getPossibleRelatedValue2(represents, domainChildren, + new StandardGraphPropertyVariable(graph, this, domainChildren)); } protected VariableMap getPossiblePropertyVariableMap(ReadGraph graph) throws DatabaseException {