From cfe25142ae72b6969fffe9c571ffd2e08097d96a Mon Sep 17 00:00:00 2001 From: Erwan de Ferrieres Date: Fri, 4 Mar 2011 13:36:11 +0000 Subject: [PATCH] When using a view and fields with different names than in the original entity, the model was taking the original names so this could lead to warnings git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1077940 13f79535-47bb-0310-9956-ffa450edef68 --- framework/entity/src/org/ofbiz/entity/GenericEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/entity/src/org/ofbiz/entity/GenericEntity.java b/framework/entity/src/org/ofbiz/entity/GenericEntity.java index 33bfe32e01..54feae21c3 100644 --- a/framework/entity/src/org/ofbiz/entity/GenericEntity.java +++ b/framework/entity/src/org/ofbiz/entity/GenericEntity.java @@ -791,7 +791,7 @@ public class GenericEntity extends Observable implements Map, Lo keyBuffer.append('.'); keyBuffer.append(name); // finish off by adding the values of all PK fields - Iterator iter = modelEntityToUse.getPksIterator(); + Iterator iter = modelEntity.getPksIterator(); while (iter != null && iter.hasNext()) { ModelField curField = iter.next(); keyBuffer.append('.');