IDEMPIERE-3897 export csv: reference column export like normal column (#189)
Fix issue that entity type and language are not being set when imported
This commit is contained in:
parent
f2a8de6779
commit
e79ef31cd5
|
@ -1077,9 +1077,13 @@ public class GridTabCSVImporter implements IGridTabImporter
|
|||
|
||||
if(isForeing)
|
||||
foreignColumn = header.get(i).substring(header.get(i).indexOf("[")+1,header.get(i).indexOf("]"));
|
||||
if(!isForeing && !isKeyColumn && ("AD_Language".equals(columnName) || "EntityType".equals(columnName)))
|
||||
if(!isForeing && !isKeyColumn && ("AD_Language".equals(columnName) || "EntityType".equals(columnName))) {
|
||||
setValue = value;
|
||||
else if(!"C_Location".equals(gridTab.getTableName()) && header.get(i).contains(MTable.getTableName(Env.getCtx(),MLocation.Table_ID))){
|
||||
GridField field = gridTab.getField(columnName);
|
||||
logMsg = gridTab.setValue(field,setValue);
|
||||
if(logMsg!=null && logMsg.equals(""))
|
||||
logMsg= null;
|
||||
}else if(!"C_Location".equals(gridTab.getTableName()) && header.get(i).contains(MTable.getTableName(Env.getCtx(),MLocation.Table_ID))){
|
||||
|
||||
if(address == null){
|
||||
if(isInsertMode()){
|
||||
|
|
Loading…
Reference in New Issue