]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Fixed PossibleVariable request to perform correct request 73/273/2
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 17 Jan 2017 15:04:55 +0000 (17:04 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 17 Jan 2017 15:43:38 +0000 (17:43 +0200)
Previously the request performed getVariable while it should have been
invoking getPossibleVariable.

refs #6982

Change-Id: I79578e621228f5dc473faddd277c34a8d639de25

bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/request/PossibleVariable.java

index dc16b154b3c918162102b36724a96ab00e71182d..0ecda0e3ff456538d9e2778ccc7f1fb68b279469 100644 (file)
@@ -26,7 +26,7 @@ public class PossibleVariable extends ResourceRead<Variable> {
 
     @Override
     public Variable perform(ReadGraph graph) throws DatabaseException {
-       return Variables.getVariable(graph, resource);
+       return Variables.getPossibleVariable(graph, resource);
     }
 
 }