BT 2788726 Reordering acct schema elements fails to update accounts

Clear cache happens too late
This commit is contained in:
phib 2009-05-08 02:01:59 +00:00
parent 33ee0e0cf3
commit e515fb3d8e
1 changed files with 5 additions and 2 deletions

View File

@ -478,12 +478,15 @@ public final class MAcctSchemaElement extends X_C_AcctSchema_Element
else if (ELEMENTTYPE_Project.equals(getElementType()))
updateData (COLUMNNAME_C_Project_ID, getC_Project_ID());
}
// Clear Cache
s_cache.clear();
// Resequence
if (newRecord || is_ValueChanged(COLUMNNAME_SeqNo))
MAccount.updateValueDescription(getCtx(),
"AD_Client_ID=" + getAD_Client_ID(), get_TrxName());
// Clear Cache
s_cache.clear();
return success;
} // afterSave