From 628202842f86d7a79716baeed0305d63ab2efb72 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 28 Feb 2007 06:18:43 +0000 Subject: [PATCH] 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 --- base/src/org/compiere/model/GridTable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/org/compiere/model/GridTable.java b/base/src/org/compiere/model/GridTable.java index 867b699e05..7d508cb8a1 100644 --- a/base/src/org/compiere/model/GridTable.java +++ b/base/src/org/compiere/model/GridTable.java @@ -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);