fixes IDEMPIERE-41 - Zoom Across in Project

http://jira.idempiere.com/browse/IDEMPIERE-41
This commit is contained in:
Carlos Ruiz 2011-07-01 23:19:08 -05:00
parent f8d3357eb1
commit 7157594458
1 changed files with 1 additions and 1 deletions

View File

@ -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());