IDEMPIERE-3375:import/export csv should use AD_Element.ColumnName to lookup
This commit is contained in:
parent
fb3977af88
commit
dfe87def6a
|
@ -485,7 +485,9 @@ public class GridTabCSVExporter implements IGridTabExporter
|
||||||
}else if ( ! ("AD_Language".equals(foreignTable) || "AD_EntityType".equals(foreignTable) || "AD_Ref_List".equals(foreignTable))) {
|
}else if ( ! ("AD_Language".equals(foreignTable) || "AD_EntityType".equals(foreignTable) || "AD_Ref_List".equals(foreignTable))) {
|
||||||
MTable fTable = MTable.get(Env.getCtx(), foreignTable);
|
MTable fTable = MTable.get(Env.getCtx(), foreignTable);
|
||||||
// Hardcoded / do not check for Value on AD_Org, AD_User and AD_Ref_List, must use name for these two tables
|
// Hardcoded / do not check for Value on AD_Org, AD_User and AD_Ref_List, must use name for these two tables
|
||||||
if (! ("AD_Org".equals(foreignTable) || "AD_User".equals(foreignTable)) && fTable.getColumn("Value") != null) {
|
if ("AD_Element".equals(foreignTable)){
|
||||||
|
name.append("[ColumnName]"); // ColumnName is unique value IDEMPIERE-3375
|
||||||
|
}else if (! ("AD_Org".equals(foreignTable) || "AD_User".equals(foreignTable)) && fTable.getColumn("Value") != null) {
|
||||||
name.append("[Value]"); // fully qualified
|
name.append("[Value]"); // fully qualified
|
||||||
} else if (fTable.getColumn("Name") != null) {
|
} else if (fTable.getColumn("Name") != null) {
|
||||||
name.append("[Name]");
|
name.append("[Name]");
|
||||||
|
|
Loading…
Reference in New Issue