From 20c3e5156ce0b7b959004a0e87a41eb779d0ddfa Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 30 Jul 2012 10:07:39 -0500 Subject: [PATCH] IDEMPIERE-351 Advanced Lookup Navigation Problem --- .../src/org/compiere/model/GridTab.java | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/GridTab.java b/org.adempiere.base/src/org/compiere/model/GridTab.java index 5816dab9c9..54a00034e0 100644 --- a/org.adempiere.base/src/org/compiere/model/GridTab.java +++ b/org.adempiere.base/src/org/compiere/model/GridTab.java @@ -787,23 +787,6 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable } // OK - Query is valid - // Zooms to the same Window (Parents, ..) - String refColName = null; - if (colName.equals("R_RequestRelated_ID")) - refColName = "R_Request_ID"; - else if (colName.startsWith("C_DocType")) - refColName = "C_DocType_ID"; - if (refColName != null) - { - query.setColumnName(0, refColName); - if (getField(refColName) != null) - { - log.fine("Column " + colName + " replaced with synonym " + refColName); - return query.getWhereClause(); - } - refColName = null; - } - // Simple Query. if (getField(colName) != null) { @@ -811,6 +794,7 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable return query.getWhereClause(); } + String refColName = null; // Find Reference Column e.g. BillTo_ID -> C_BPartner_Location_ID String sql = "SELECT cc.ColumnName " + "FROM AD_Column c"