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:
parent
b94270a7c5
commit
628202842f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue