diff --git a/base/src/org/compiere/model/GridField.java b/base/src/org/compiere/model/GridField.java index 1e801b29ae..de35761cbd 100644 --- a/base/src/org/compiere/model/GridField.java +++ b/base/src/org/compiere/model/GridField.java @@ -799,6 +799,9 @@ public class GridField */ public String get_ValueAsString (String variableName) { + if( m_vo.TabNo == 0) + return Env.getContext (m_vo.ctx, m_vo.WindowNo, variableName, true); + else return Env.getContext (m_vo.ctx, m_vo.WindowNo, m_vo.TabNo, variableName, false, true); } // get_ValueAsString