Set a default for groups in addGroupsToGroupSave. Fixes bug #11203

This commit is contained in:
Colin Kuskie 2009-11-06 11:36:08 -08:00
parent 274e82e1fa
commit c10363bcf6
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,7 @@
7.8.5
- The captcha form control had it's built in styles removed in favor of two classes: "wg-captchaForm" and "wg-captchaImage"
- fixed #11134: Tree Navigation menu colapses sub items of current page
- fixed #11203: Manage groups in group: everyone added on save
7.8.4
- Fixed a compatibility problem between WRE and new Spectre code.

View file

@ -292,7 +292,7 @@ sub www_addGroupsToGroupSave {
my $session = shift;
return $session->privilege->adminOnly() unless (canEditGroup($session,$session->form->process("gid")) && $session->form->validToken);
my $group = WebGUI::Group->new($session,$session->form->process("gid"));
my @groups = $session->form->group('groups');
my @groups = $session->form->process('groups', 'group', []);
$group->addGroups(\@groups);
return www_manageGroupsInGroup($session);
}