This is an automated email from the ASF dual-hosted git repository.
mridulpathak pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 45fc6d1563 Fixed: view-entity complex-alias field name bug when
view-entities reference other view-entities (OFBIZ-5315) (#1281)
45fc6d1563 is described below
commit 45fc6d156309b08180434d941510d39f2bba1b44
Author: Mridul Pathak <[email protected]>
AuthorDate: Fri May 29 15:44:00 2026 +0530
Fixed: view-entity complex-alias field name bug when view-entities
reference other view-entities (OFBIZ-5315) (#1281)
Fixed: view-entity complex-alias field name bug when view-entities
reference other view-entities
(OFBIZ-5315)
Thanks: Christian Carlow for reporting and fixing the issue.
---
.../src/main/java/org/apache/ofbiz/entity/model/ModelViewEntity.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/framework/entity/src/main/java/org/apache/ofbiz/entity/model/ModelViewEntity.java
b/framework/entity/src/main/java/org/apache/ofbiz/entity/model/ModelViewEntity.java
index 82011fc077..c4939a3166 100644
---
a/framework/entity/src/main/java/org/apache/ofbiz/entity/model/ModelViewEntity.java
+++
b/framework/entity/src/main/java/org/apache/ofbiz/entity/model/ModelViewEntity.java
@@ -1217,7 +1217,7 @@ public class ModelViewEntity extends ModelEntity {
} else {
ModelEntity modelEntity =
modelViewEntity.getAliasedEntity(entityAlias, modelReader);
ModelField modelField =
modelViewEntity.getAliasedField(modelEntity, field, modelReader);
- String colName = entityAlias + "." + modelField.getColName();
+ String colName = entityAlias + "." +
SqlJdbcUtil.filterColName(modelField.getColName());
if (UtilValidate.isNotEmpty(defaultValue)) {
colName = "COALESCE(" + colName + "," + defaultValue + ")";