IDEMPIERE-5565 Cannot create report with virtual column where reference is table with display column = ID (#1662)

This commit is contained in:
Carlos Ruiz 2023-02-08 08:48:46 +01:00 committed by GitHub
parent 946730f1be
commit 801d1fb898
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -482,14 +482,16 @@ public class DataEngine
|| (AD_Reference_ID == DisplayType.Search && AD_Reference_Value_ID != 0)
)
{
String eSql;
if (ColumnSQL.length() > 0)
{
lookupSQL = ColumnSQL;
eSql = MLookupFactory.getLookup_TableEmbed(m_language, ColumnSQL, tableName, AD_Reference_Value_ID);
}
else
{
eSql = MLookupFactory.getLookup_TableEmbed(m_language, ColumnName, tableName, AD_Reference_Value_ID);
}
String eSql;
eSql = MLookupFactory.getLookup_TableEmbed(m_language, ColumnName, tableName, AD_Reference_Value_ID);
// DisplayColumn
String display = ColumnName;