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:
trifonnt 2010-02-16 07:20:21 +00:00
parent 19cc812271
commit cc06c00048
1 changed files with 3 additions and 1 deletions

View File

@ -616,7 +616,9 @@ public class MProduct extends X_M_Product
MAttributeSetInstance asi = new MAttributeSetInstance(getCtx(), getM_AttributeSetInstance_ID(), get_TrxName());
setM_AttributeSetInstance_ID(0);
// 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");
return false;