Fix bug - it appears for user to allow insert of other record with same parent values, but really update the record

reversing Compiere change it throws the right error on unique index
This commit is contained in:
Carlos Ruiz 2007-02-28 06:18:43 +00:00
parent b94270a7c5
commit 628202842f
1 changed files with 1 additions and 1 deletions

View File

@ -1721,7 +1721,7 @@ public class GridTable extends AbstractTableModel
//
MTable table = MTable.get (m_ctx, m_AD_Table_ID);
PO po = null;
if (table.isSingleKey())
if (Record_ID != -1)
po = table.getPO(Record_ID, null);
else // Multi - Key
po = table.getPO(getWhereClause(rowData), null);