IDEMPIERE-4520 Attribute Instance not Refreshed on Create only on Update (#409)
This commit is contained in:
parent
72f991d7a6
commit
2735131285
|
@ -281,8 +281,7 @@ public class MAttribute extends X_M_Attribute implements ImmutablePOSupport
|
||||||
MAttributeInstance instance = getMAttributeInstance(M_AttributeSetInstance_ID);
|
MAttributeInstance instance = getMAttributeInstance(M_AttributeSetInstance_ID);
|
||||||
if (instance == null)
|
if (instance == null)
|
||||||
instance = new MAttributeInstance(getCtx(), getM_Attribute_ID(), M_AttributeSetInstance_ID, valueInt, get_TrxName());
|
instance = new MAttributeInstance(getCtx(), getM_Attribute_ID(), M_AttributeSetInstance_ID, valueInt, get_TrxName());
|
||||||
else
|
instance.setValueInt(valueInt, value);
|
||||||
instance.setValueInt(valueInt, value);
|
|
||||||
instance.saveEx();
|
instance.saveEx();
|
||||||
} // setAttributeInstance
|
} // setAttributeInstance
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue