BF [3074827] - Context problem at VPAttribute

https://sourceforge.net/tracker/?func=detail&atid=879332&aid=3074827&group_id=176962
* Implement same solution suggested by mgrigioni in zkwebui
This commit is contained in:
Carlos Ruiz 2011-03-26 00:05:35 -05:00
parent 37bc06d1b7
commit d673117995
1 changed files with 2 additions and 2 deletions

View File

@ -162,8 +162,8 @@ public class WPAttributeEditor extends WEditor implements ContextMenuListener
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");
log.config("M_Product_ID=" + M_Product_ID + "/" + M_ProductBOM_ID log.config("M_Product_ID=" + M_Product_ID + "/" + M_ProductBOM_ID
+ ",M_AttributeSetInstance_ID=" + M_AttributeSetInstance_ID + ",M_AttributeSetInstance_ID=" + M_AttributeSetInstance_ID