IDEMPIERE-2207 Use of virtual column in search is broken
This commit is contained in:
parent
e9cbab568c
commit
8ead12cbab
|
@ -1112,6 +1112,7 @@ class Restriction implements Serializable
|
|||
boolean virtualColumn = false;
|
||||
if (tableName != null && tableName.length() > 0) {
|
||||
MTable table = MTable.get(Env.getCtx(), tableName);
|
||||
if (table != null) {
|
||||
for (MColumn col : table.getColumns(false)) {
|
||||
if (ColumnName.equals(col.getColumnSQL())) {
|
||||
virtualColumn = true;
|
||||
|
@ -1119,6 +1120,7 @@ class Restriction implements Serializable
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (!virtualColumn && tableName != null && tableName.length() > 0)
|
||||
|
|
Loading…
Reference in New Issue