Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
axel committed Mar 23, 2021
1 parent 36ae95e commit 6372f30
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Controller/GrouperGroupsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) {
Expand Down Expand Up @@ -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'));
Expand Down
2 changes: 1 addition & 1 deletion Lib/GrouperApiAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion View/GrouperGroups/groupcreatetemplate.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $model = $this->name;
<div class="col-lg-9 col-xs-12 col-xl-6">
<div class="create-group">
<?php echo $this->Form->create(false, array(
'url' => array('controller' => 'groupergroups', 'action' => 'groupcreatetemplateform')
'url' => array('controller' => 'groupergroups', 'action' => 'groupcreatetemplate')
)); ?>
<?php
if (!empty($this->plugin)) {
Expand Down

0 comments on commit 6372f30

Please sign in to comment.