IDEMPIERE-1297 2Pack: Remove code for the lookup of record and reference using business key. Fixed NPE in previous revision.
This commit is contained in:
parent
ee52fd68f3
commit
fb4c2d3007
|
@ -164,7 +164,8 @@ public class PoFiller{
|
||||||
return id;
|
return id;
|
||||||
} else if (id == 0) {
|
} else if (id == 0) {
|
||||||
MColumn col = MColumn.get(ctx.ctx, po.get_TableName(), columnName);
|
MColumn col = MColumn.get(ctx.ctx, po.get_TableName(), columnName);
|
||||||
if (MTable.isZeroIDTable(col.getReferenceTableName())) {
|
String refTableName = col.getReferenceTableName();
|
||||||
|
if (refTableName != null && MTable.isZeroIDTable(refTableName)) {
|
||||||
po.set_ValueNoCheck(columnName, id);
|
po.set_ValueNoCheck(columnName, id);
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue