From 7157594458084b97213f44ac790a4d6cc62e5d28 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 1 Jul 2011 23:19:08 -0500 Subject: [PATCH] fixes IDEMPIERE-41 - Zoom Across in Project http://jira.idempiere.com/browse/IDEMPIERE-41 --- .../src/org/adempiere/model/GenericZoomProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/adempiere/model/GenericZoomProvider.java b/org.adempiere.base/src/org/adempiere/model/GenericZoomProvider.java index f67ef8aeba..9ef82394ee 100644 --- a/org.adempiere.base/src/org/adempiere/model/GenericZoomProvider.java +++ b/org.adempiere.base/src/org/adempiere/model/GenericZoomProvider.java @@ -112,7 +112,7 @@ public class GenericZoomProvider implements IZoomProvider { query.addRestriction(po.get_TableName() + "_ID=" + po.get_ID()); if (tab.getWhereClause() != null && tab.getWhereClause().length() > 0) - query.addRestriction(tab.getWhereClause()); + query.addRestriction("(" + tab.getWhereClause() + ")"); query.setZoomTableName(targetTableName); query.setZoomColumnName(po.get_KeyColumns()[0]); query.setZoomValue(po.get_ID());