From b272bd0c5aa4a47491e5f989ed924facf7f86603 Mon Sep 17 00:00:00 2001 From: Diego Ruiz <12065321+d-ruiz@users.noreply.github.com> Date: Tue, 17 Oct 2023 03:43:22 +0200 Subject: [PATCH] IDEMPIERE-5774 - Fixed bug that shows cross tenant record on info window when the where clause is wrong (#2058) --- .../WEB-INF/src/org/adempiere/webui/info/InfoWindow.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/info/InfoWindow.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/info/InfoWindow.java index 9fb9498101..f541e64ba0 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/info/InfoWindow.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/info/InfoWindow.java @@ -905,7 +905,9 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL if (builder.length() > 0) { builder.append(" AND "); } + builder.append("("); builder.append(infoWhereClause); + builder.append(")"); p_whereClause = builder.toString(); }