Commit 46c712838ccfbc85cb78fb29ef840f5ee3cc9bac

Authored by Neil Blakey-Milner
1 parent 0372877e

Redirect to adding users to the group when creating a group

Inspired by:	Valeria Costa <v.costa@pisa.iol.it>


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3626 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/addGroupBL.php
@@ -53,8 +53,8 @@ if (checkSession()) { @@ -53,8 +53,8 @@ if (checkSession()) {
53 $default->log->info("set group (id=" . $oGroup->getID() . ") to unit id=$fUnitID"); 53 $default->log->info("set group (id=" . $oGroup->getID() . ") to unit id=$fUnitID");
54 $oGroupUnit = new GroupUnitLink($oGroup->getID(), $fUnitID); 54 $oGroupUnit = new GroupUnitLink($oGroup->getID(), $fUnitID);
55 if ($oGroupUnit->create()) { 55 if ($oGroupUnit->create()) {
56 - // redirect to list page  
57 - controllerRedirect("listGroups"); 56 + // redirect to group users page
  57 + controllerRedirect("editGroupUsers", "fGroupID=" . $oGroup->getID());
58 } else { 58 } else {
59 $oPatternCustom->setHtml(statusPage(_("Add A New Group"), _("Addition Unsuccessful") . "!", _("There was an error associating the new group with the specified unit."), "addGroup")); 59 $oPatternCustom->setHtml(statusPage(_("Add A New Group"), _("Addition Unsuccessful") . "!", _("There was an error associating the new group with the specified unit."), "addGroup"));
60 } 60 }