BF [2947768] - Changing AttributeSet does not reset AttributeSetInstance
https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2947768&group_id=176962 Use deleteEx instead of delete(). Thank's to Teo's advice.
This commit is contained in:
parent
19cc812271
commit
cc06c00048
|
@ -616,7 +616,9 @@ public class MProduct extends X_M_Product
|
||||||
MAttributeSetInstance asi = new MAttributeSetInstance(getCtx(), getM_AttributeSetInstance_ID(), get_TrxName());
|
MAttributeSetInstance asi = new MAttributeSetInstance(getCtx(), getM_AttributeSetInstance_ID(), get_TrxName());
|
||||||
setM_AttributeSetInstance_ID(0);
|
setM_AttributeSetInstance_ID(0);
|
||||||
// Delete the old m_attributesetinstance
|
// Delete the old m_attributesetinstance
|
||||||
if (!asi.delete(true, get_TrxName()))
|
try {
|
||||||
|
asi.deleteEx(true, get_TrxName());
|
||||||
|
} catch (AdempiereException ex)
|
||||||
{
|
{
|
||||||
log.saveError("Error", "Error deleting the AttributeSetInstance");
|
log.saveError("Error", "Error deleting the AttributeSetInstance");
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue