From f958219a71403b7939f626e5b0e2e6ff0186ffef Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sat, 3 Mar 2012 19:02:46 -0500 Subject: [PATCH] IDEMPIERE-169 Query on detail tab is wrongly preserved when changin master record http://jira.idempiere.com/browse/IDEMPIERE-169 --- org.adempiere.base/src/org/compiere/model/GridTab.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.adempiere.base/src/org/compiere/model/GridTab.java b/org.adempiere.base/src/org/compiere/model/GridTab.java index a20151b254..019e005bda 100644 --- a/org.adempiere.base/src/org/compiere/model/GridTab.java +++ b/org.adempiere.base/src/org/compiere/model/GridTab.java @@ -667,6 +667,8 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable // Same link value? if (refresh) refresh = m_linkValue.equals(value); + if (! m_linkValue.equals(value)) + setQuery(null); m_linkValue = value; // Check validity if (value.length() == 0)