IDEMPIERE-5683 - Ignore Views with Record ID and Record UU Model Constraints (#1828)

This commit is contained in:
Peter Takács 2023-05-11 12:24:09 +02:00 committed by GitHub
parent 2c4e66f8e2
commit ae19cbe91a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ public class PO_Record
KeyNamePair[] tables = s_po_record_tables_cache.get(constraintType);
if (tables != null)
return tables;
List<MTable> listTables = new Query(Env.getCtx(), MTable.Table_Name, "c.AD_Reference_ID=? AND c.FKConstraintType=?", trxName)
List<MTable> listTables = new Query(Env.getCtx(), MTable.Table_Name, "c.AD_Reference_ID=? AND c.FKConstraintType=? AND AD_Table.IsView='N'", trxName)
.addJoinClause("JOIN AD_Column c ON (c.AD_Table_ID=AD_Table.AD_Table_ID)")
.setOnlyActiveRecords(true)
.setParameters(DisplayType.RecordID, constraintType)