BF [3074827] - Context problem at VPAttribute

https://sourceforge.net/tracker/?func=detail&atid=879332&aid=3074827&group_id=176962
This commit is contained in:
trifonnt 2011-03-26 00:04:51 -05:00
parent 9a4ed16060
commit 37bc06d1b7
1 changed files with 2 additions and 2 deletions

View File

@ -379,8 +379,8 @@ public class VPAttribute extends JComponent
Integer oldValue = (Integer)getValue (); Integer oldValue = (Integer)getValue ();
int oldValueInt = oldValue == null ? 0 : oldValue.intValue (); int oldValueInt = oldValue == null ? 0 : oldValue.intValue ();
int M_AttributeSetInstance_ID = oldValueInt; int M_AttributeSetInstance_ID = oldValueInt;
int M_Product_ID = Env.getContextAsInt (Env.getCtx (), m_WindowNo, "M_Product_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_ProductBOM_ID"); int M_ProductBOM_ID = Env.getContextAsInt (Env.getCtx (), m_WindowNo, m_GridTab.getTabNo(), "M_ProductBOM_ID");
int M_Locator_ID = -1; int M_Locator_ID = -1;
log.config("M_Product_ID=" + M_Product_ID + "/" + M_ProductBOM_ID log.config("M_Product_ID=" + M_Product_ID + "/" + M_ProductBOM_ID