_group = SPGroup.createSPGroup(editingContext, "New Group", currentPerson);
SPMembership.createSPMembership(editingContext, Boolean.TRUE, Boolean.TRUE, _group, currentPerson);
}
return _group;
}
<BUG>public WOActionResults addGroup() {
_group.editingContext().saveChanges();</BUG>
SPGroupEditPage groupPage = pageWithName(SPGroupEditPage.class);
groupPage.setGroup(_group);
return groupPage;

_group = SPGroup.createSPGroup(editingContext, "New Group", currentPerson);
SPMembership.createSPMembership(editingContext, Boolean.TRUE, Boolean.TRUE, _group, currentPerson);
}
return _group;
}
public WOActionResults addGroup() {
if (session().errors().hasNotices()) {
return null;
}
_group.editingContext().saveChanges();
SPGroupEditPage groupPage = pageWithName(SPGroupEditPage.class);
groupPage.setGroup(_group);
return groupPage;
