IDEMPIERE-4777 New table whose name ends in "Line" and does not have a Header table (#675)
This commit is contained in:
parent
9d40f6b5df
commit
3211c449cb
|
@ -1749,7 +1749,7 @@ public final class DB
|
|||
if (noIsSOTrxColumn && TableName.endsWith("Line")) {
|
||||
noIsSOTrxColumn = false;
|
||||
String hdr = TableName.substring(0, TableName.indexOf("Line"));
|
||||
if (MTable.get(Env.getCtx(), hdr).getColumn("IsSOTrx") == null) {
|
||||
if (MTable.get(Env.getCtx(), hdr) == null || MTable.get(Env.getCtx(), hdr).getColumn("IsSOTrx") == null) {
|
||||
noIsSOTrxColumn = true;
|
||||
} else {
|
||||
// use IN instead of EXISTS as the subquery should be highly selective
|
||||
|
|
Loading…
Reference in New Issue