IDEMPIERE-5266 - AD_Column Caching changes (#1290)
This commit is contained in:
parent
b4922eaf12
commit
f18d221b41
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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 ")
|
||||
|
|
Loading…
Reference in New Issue