IDEMPIERE-2273 CSV Import fail on evaluate column mandatory logic / based on patch from Claudemir Todo Bom (allgood)
This commit is contained in:
parent
1898b69191
commit
44e85e6999
|
@ -765,7 +765,7 @@ public class GridTabCSVImporter implements IGridTabImporter
|
||||||
return new StringBuilder(Msg.getMsg(Env.getCtx(), "FieldNotDisplayed",new Object[] {header.get(i)}));
|
return new StringBuilder(Msg.getMsg(Env.getCtx(), "FieldNotDisplayed",new Object[] {header.get(i)}));
|
||||||
|
|
||||||
MColumn column = MColumn.get(Env.getCtx(), field.getAD_Column_ID());
|
MColumn column = MColumn.get(Env.getCtx(), field.getAD_Column_ID());
|
||||||
if((field.isMandatory(true) || column.isMandatory()) && value == null && field.getDefault()==null){
|
if((field.isMandatory(false) || column.isMandatory()) && value == null && field.getDefault()==null){
|
||||||
mandatoryColumns.append(" / ");
|
mandatoryColumns.append(" / ");
|
||||||
mandatoryColumns.append(header.get(i));
|
mandatoryColumns.append(header.get(i));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue