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
This commit is contained in:
@@ -791,7 +791,7 @@ public class GenericEntity extends Observable implements Map<String, Object>, Lo
|
||||
keyBuffer.append('.');
|
||||
keyBuffer.append(name);
|
||||
// finish off by adding the values of all PK fields
|
||||
Iterator<ModelField> iter = modelEntityToUse.getPksIterator();
|
||||
Iterator<ModelField> iter = modelEntity.getPksIterator();
|
||||
while (iter != null && iter.hasNext()) {
|
||||
ModelField curField = iter.next();
|
||||
keyBuffer.append('.');
|
||||
|
||||
Reference in New Issue
Block a user