Fix [1853611] - Wrong behavior adding in trees

https://sourceforge.net/tracker/index.php?func=detail&aid=1853611&group_id=176962&atid=879332
This commit is contained in:
Carlos Ruiz 2009-08-26 00:50:23 +00:00
parent 7fafd4a0b0
commit 32c4363316
1 changed files with 3 additions and 1 deletions

View File

@ -150,7 +150,9 @@ public class MOrg extends X_AD_Org
info.saveEx();
// Access
MRoleOrgAccess.createForOrg (this);
MRole.getDefault(getCtx(), true); // reload
MRole role = MRole.getDefault(getCtx(), true); // reload
role.set_TrxName(get_TrxName());
role.loadAccess(true); // reload org access within transaction
// TreeNode
insert_Tree(MTree_Base.TREETYPE_Organization);
}