From 3cc2f2a2134367d2515905613325f1f69d0743ce Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sat, 24 Apr 2010 05:31:52 +0000 Subject: [PATCH] BF [2891218] Wrong behavior in entity type settings for customization entity types - minor refactoring Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2891218 --- base/src/org/compiere/process/TabCreateFields.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/base/src/org/compiere/process/TabCreateFields.java b/base/src/org/compiere/process/TabCreateFields.java index 3c8fa0fa37..7158f40493 100644 --- a/base/src/org/compiere/process/TabCreateFields.java +++ b/base/src/org/compiere/process/TabCreateFields.java @@ -93,19 +93,17 @@ public class TabCreateFields extends SvrProcess MField field = new MField (tab); field.setColumn(column); - // F3P: changed to obey to the following rule: - // if field entitytype == D, then get tab's entity type + // F3P: assign field entity type -> changed to obey to the following rule: + // if column entitytype == D, then get tab's entity type // if not, keep field entity type (ie: entitytype is D if and only if both are D) - if(column.getEntityType().equals("D")) + if ("D".equals(column.getEntityType())) field.setEntityType(tab.getEntityType()); else field.setEntityType(column.getEntityType()); // end F3P - // field.setEntityType(tab.getEntityType()); // Use Tab's Entity Type - teo_sarca, BF [ 2827782 ] - if (column.isKey()) field.setIsDisplayed(false); if (field.save())