IDEMPIERE-5266 - AD_Column Caching changes (#1290)

This commit is contained in:
PeterTakacs300 2022-04-12 09:42:35 +02:00 committed by GitHub
parent b4922eaf12
commit f18d221b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,7 @@ public abstract class AbstractDocumentSearch {
MTable table = new MTable(Env.getCtx(), msd.getAD_Table_ID(), null);
// SearchDefinition with a given table and column
if (msd.getSearchType().equals(MSearchDefinition.SEARCHTYPE_TABLE)) {
MColumn column = new MColumn(Env.getCtx(), msd.getAD_Column_ID(), null);
MColumn column = MColumn.get(Env.getCtx(), msd.getAD_Column_ID());
sqlSO = new StringBuilder("SELECT ").append(table.getTableName()).append("_ID FROM ").append(table.getTableName())
.append(" ");
// search for an Integer

View File

@ -684,7 +684,7 @@ public class MLookupFactory
embedSQL.append(TableNameAlias).append(".Value||'").append(separator).append("'||");
}
MColumn columnDisplay = new MColumn(Env.getCtx(), columnDisplay_ID, null);
MColumn columnDisplay = MColumn.get(Env.getCtx(), columnDisplay_ID);
if (columnDisplay.isVirtualUIColumn() || columnDisplay.isVirtualSearchColumn())
{
s_log.warning("Virtual UI Column must not be used as display");

View File

@ -135,7 +135,7 @@ public class DocumentSearchController implements EventListener<Event>{
List<Object> params = new ArrayList<Object>();
// SearchDefinition with a given table and column
if (msd.getSearchType().equals(MSearchDefinition.SEARCHTYPE_TABLE)) {
MColumn column = new MColumn(Env.getCtx(), msd.getAD_Column_ID(), null);
MColumn column = MColumn.get(Env.getCtx(), msd.getAD_Column_ID());
sql = new StringBuilder("SELECT ").append(table.getTableName()).append("_ID, ")
.append(column.getColumnName());
sql.append(" FROM ")