diff --git a/framework/src/main/groovy/org/moqui/impl/entity/EntityDataFeed.groovy b/framework/src/main/groovy/org/moqui/impl/entity/EntityDataFeed.groovy index 02e5e8d41..c46a00ca9 100644 --- a/framework/src/main/groovy/org/moqui/impl/entity/EntityDataFeed.groovy +++ b/framework/src/main/groovy/org/moqui/impl/entity/EntityDataFeed.groovy @@ -633,7 +633,7 @@ class EntityDataFeed { // entity name alone String currentRelName = backwardRelList.get(i) String currentRelEntityName = currentRelName.contains("#") ? - currentRelName.substring(0, currentRelName.indexOf("#")) : + currentRelName.substring(currentRelName.indexOf("#") + 1) : currentRelName // all values should be for the same entity, so just use the first EntityDefinition prevRelValueEd = prevRelValueList.get(0).getEntityDefinition()