[ 1845570 ] MTable.getPO(0,Trx_Name) return null for multi key table

This commit is contained in:
Heng Sin Low 2007-12-06 15:11:55 +00:00
parent 7cf964fc46
commit 18d3a5cb01
1 changed files with 1 additions and 1 deletions

View File

@ -504,7 +504,7 @@ public class MTable extends X_AD_Table
}
PO po = (PO)constructor.newInstance(new Object[] {getCtx(), new Integer(Record_ID), trxName});
if (po != null && po.get_ID() != Record_ID)
if (po != null && po.get_ID() != Record_ID && Record_ID > 0)
return null;
return po;
}