From 16c727017d5a1600227e1c991cebc4f3c7eb4a9c Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 13 Feb 2023 13:18:12 +0100 Subject: [PATCH] IDEMPIERE-5565 Info Window not working with virtual column where reference is table with display column = ID (#1672) --- .../WEB-INF/src/org/adempiere/webui/panel/InfoGeneralPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoGeneralPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoGeneralPanel.java index f8e331f93c..671412a051 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoGeneralPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoGeneralPanel.java @@ -671,7 +671,7 @@ public class InfoGeneralPanel extends InfoPanel implements EventListener MColumn column = table.getColumn(columnName); String baseColumn = column.isVirtualColumn() ? columnSql : columnName; - String embedded = AD_Reference_Value_ID > 0 ? MLookupFactory.getLookup_TableEmbed(Env.getLanguage(Env.getCtx()), columnName, p_tableName, AD_Reference_Value_ID) + String embedded = AD_Reference_Value_ID > 0 ? MLookupFactory.getLookup_TableEmbed(Env.getLanguage(Env.getCtx()), baseColumn, p_tableName, AD_Reference_Value_ID) : MLookupFactory.getLookup_TableDirEmbed(Env.getLanguage(Env.getCtx()), columnName, p_tableName, baseColumn); embedded = "(" + embedded + ")";