From 601b6ab46aa898004652ac54c6ce54ecb28b7e53 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 29 Jan 2008 00:42:55 +0000 Subject: [PATCH] Fix [ 1881480 ] Navigation problem between tabs Safer approach - just clear the key column from context --- base/src/org/compiere/model/GridTab.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/src/org/compiere/model/GridTab.java b/base/src/org/compiere/model/GridTab.java index 77bc924b1c..e8232eeef7 100644 --- a/base/src/org/compiere/model/GridTab.java +++ b/base/src/org/compiere/model/GridTab.java @@ -2199,10 +2199,10 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable // you must be careful when defining a column in a detail tab with a field // with the same column name as some of the links of the tabs above // this can cause bad behavior of linking - if (mField.getColumnName().equals(m_linkColumnName)) - mField.setValue(); - else + if (mField.isKey()) mField.setValueAndUpdateContext(); + else + mField.setValue(); } } loadDependentInfo();