diff --git a/source/java/org/alfresco/web/bean/groups/CreateGroupDialog.java b/source/java/org/alfresco/web/bean/groups/CreateGroupDialog.java index 28d563c23e..b22a7419ef 100644 --- a/source/java/org/alfresco/web/bean/groups/CreateGroupDialog.java +++ b/source/java/org/alfresco/web/bean/groups/CreateGroupDialog.java @@ -79,7 +79,11 @@ public class CreateGroupDialog extends BaseDialogBean String groupName = this.getAuthService().getName(AuthorityType.GROUP, this.name); if (this.getAuthService().authorityExists(groupName) == false) { - this.getAuthService().createAuthority(AuthorityType.GROUP, this.parentGroup, this.name); + this.getAuthService().createAuthority(AuthorityType.GROUP, this.name); + if (this.parentGroup != null) + { + this.getAuthService().addAuthority(this.parentGroup, groupName); + } } else {