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:
Heng Sin Low 2013-09-07 03:52:22 +08:00
parent ee52fd68f3
commit fb4c2d3007
1 changed files with 2 additions and 1 deletions

View File

@ -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;
} }