IDEMPIERE-4520 Attribute Instance not Refreshed on Create only on Update (#409)

This commit is contained in:
Carlos Ruiz 2020-11-25 10:59:32 +01:00 committed by GitHub
parent 72f991d7a6
commit 2735131285
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -281,8 +281,7 @@ public class MAttribute extends X_M_Attribute implements ImmutablePOSupport
MAttributeInstance instance = getMAttributeInstance(M_AttributeSetInstance_ID);
if (instance == null)
instance = new MAttributeInstance(getCtx(), getM_Attribute_ID(), M_AttributeSetInstance_ID, valueInt, get_TrxName());
else
instance.setValueInt(valueInt, value);
instance.setValueInt(valueInt, value);
instance.saveEx();
} // setAttributeInstance