diff --git a/Controller/GrouperGroupsController.php b/Controller/GrouperGroupsController.php index c52e6c7..3657e95 100644 --- a/Controller/GrouperGroupsController.php +++ b/Controller/GrouperGroupsController.php @@ -286,8 +286,8 @@ public function groupOptin() { //Set initial settings for pagination $scope = [ 'userId' => $this->userId, - 'page' => ($this->passedArgs['page'] ? $this->passedArgs['page']: $this->paginate['page']), - 'limit' => ($this->passedArgs['limit'] ? $this->passedArgs['limit']: $this->paginate['limit']), + 'page' => (isset($this->passedArgs['page']) ? $this->passedArgs['page']: $this->paginate['page']), + 'limit' => (isset($this->passedArgs['limit']) ? $this->passedArgs['limit']: $this->paginate['limit']), ]; if (isset($this->request->data['search'])) { @@ -342,6 +342,9 @@ public function groupCreateTemplate() { if(!$this->GrouperGroup->createGroupWithTemplate($this->userId, $this->request->data)){ $this->Flash->set("Error in creating group!", array('key' => 'error')); return $this->redirect(array('action' => 'groupoptin')); + } else { + $this->Flash->set("Success in creating group!", array('key' => 'success')); + return $this->redirect(array('action' => 'groupoptin')); } } $this->set('title', _txt('pl.grouperlite.title.templatecreate')); diff --git a/Lib/GrouperApiAccess.php b/Lib/GrouperApiAccess.php index 92a067c..bea20de 100644 --- a/Lib/GrouperApiAccess.php +++ b/Lib/GrouperApiAccess.php @@ -470,7 +470,7 @@ public function deleteGroupWithTemplate(array $queryData) { "stemName" => "ref:incommon-collab" ), "ownerType" => "stem", - "configId" => "createNewWorkingGroup", + "configId" => "createWorkingGroup", "inputs" => array( array( "name" => "gsh_input_workingGroupExtension", diff --git a/View/GrouperGroups/groupcreatetemplate.ctp b/View/GrouperGroups/groupcreatetemplate.ctp index a0b2e9c..c7db590 100644 --- a/View/GrouperGroups/groupcreatetemplate.ctp +++ b/View/GrouperGroups/groupcreatetemplate.ctp @@ -10,7 +10,7 @@ $model = $this->name;
Form->create(false, array( - 'url' => array('controller' => 'groupergroups', 'action' => 'groupcreatetemplateform') + 'url' => array('controller' => 'groupergroups', 'action' => 'groupcreatetemplate') )); ?> plugin)) {