From 37bc06d1b7a678880ff8c66ec28fbc021b495d69 Mon Sep 17 00:00:00 2001 From: trifonnt Date: Sat, 26 Mar 2011 00:04:51 -0500 Subject: [PATCH] BF [3074827] - Context problem at VPAttribute https://sourceforge.net/tracker/?func=detail&atid=879332&aid=3074827&group_id=176962 --- .../src/org/compiere/grid/ed/VPAttribute.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VPAttribute.java b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VPAttribute.java index 31d4b4e8fb..f5c8b286ef 100644 --- a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VPAttribute.java +++ b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VPAttribute.java @@ -379,8 +379,8 @@ public class VPAttribute extends JComponent Integer oldValue = (Integer)getValue (); int oldValueInt = oldValue == null ? 0 : oldValue.intValue (); int M_AttributeSetInstance_ID = oldValueInt; - int M_Product_ID = Env.getContextAsInt (Env.getCtx (), m_WindowNo, "M_Product_ID"); - int M_ProductBOM_ID = Env.getContextAsInt (Env.getCtx (), m_WindowNo, "M_ProductBOM_ID"); + int M_Product_ID = Env.getContextAsInt (Env.getCtx (), m_WindowNo, m_GridTab.getTabNo(), "M_Product_ID"); + int M_ProductBOM_ID = Env.getContextAsInt (Env.getCtx (), m_WindowNo, m_GridTab.getTabNo(), "M_ProductBOM_ID"); int M_Locator_ID = -1; log.config("M_Product_ID=" + M_Product_ID + "/" + M_ProductBOM_ID