Backout aecb6ca - IDEMPIERE-1177 - backed out as a better solution has been proposed, pending to implement

This commit is contained in:
Carlos Ruiz 2013-07-18 16:43:19 -05:00
parent 3e06cf3255
commit 1319bae51a
1 changed files with 4 additions and 8 deletions

View File

@ -3822,14 +3822,10 @@ public class GridTable extends AbstractTableModel
MTable table = MTable.get (m_ctx, m_AD_Table_ID);
PO po = null;
int Record_ID = getKeyID(row);
if (Record_ID == 0 && MTable.isZeroIDTable(getTableName())) {
po = new Query(Env.getCtx(), table, getKeyColumnName()+"=0", null).first();
} else {
if (Record_ID != -1)
po = table.getPO(Record_ID, m_trxName);
else // Multi - Key
po = table.getPO(getWhereClause(getDataAtRow(row)), m_trxName);
}
if (Record_ID != -1)
po = table.getPO(Record_ID, m_trxName);
else // Multi - Key
po = table.getPO(getWhereClause(getDataAtRow(row)), m_trxName);
return po;
}