IDEMPIERE-5567 Support of UUID as Key (FHCA-4195) (#1881)
- Fix issues created with latest change - not able to create new records in Zero ID tables (C_DocType, AD_User, etc)
This commit is contained in:
parent
0ae48988bd
commit
08c6d0aaa0
|
@ -1632,7 +1632,7 @@ public class GridTable extends AbstractTableModel
|
||||||
m_trxName = null;
|
m_trxName = null;
|
||||||
if (Record_ID != -1)
|
if (Record_ID != -1)
|
||||||
{
|
{
|
||||||
if (Record_ID == 0 && MTable.isZeroIDTable(table.getTableName())) {
|
if (Record_ID == 0 && !m_inserting && MTable.isZeroIDTable(table.getTableName())) {
|
||||||
String uuidFromZeroID = table.getUUIDFromZeroID();
|
String uuidFromZeroID = table.getUUIDFromZeroID();
|
||||||
po = table.getPOByUU(uuidFromZeroID, m_trxName);
|
po = table.getPOByUU(uuidFromZeroID, m_trxName);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue