Skip to content

Commit

Permalink
fix hidden input field
Browse files Browse the repository at this point in the history
  • Loading branch information
axel committed Dec 17, 2020
1 parent cb2e7d0 commit 9fb52b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Controller/GrouperGroupsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class GrouperGroupsController extends GrouperLiteAppController
public $components = array('Flash');

public $name = 'GrouperGroups';
public $userId = 'ryan.mathis@at.internet2.edu';

public function index() {
return $this->redirect(
Expand Down
2 changes: 1 addition & 1 deletion View/Elements/Components/optAction.ctp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php echo $this->Form->create(false, array(
'url' => array('controller' => 'groupergroups', 'action' => $action)
)); ?>
<input type="hidden" name="GroupName" value="<?php echo $group; ?>" />
<?php print $this->Form->hidden('GroupName', array('default' => $group)); ?>
<button class="btn btn-raised btn-block btn-<?php echo $member ? 'danger' : 'success'; ?>" type="submit">
<?php echo $member ? _txt('pl.grouperlite.action.leave-group') : _txt('pl.grouperlite.action.join-group') ?> &nbsp;
<i class="fa fa-<?php echo $member ? 'user-times' : 'users'; ?> fa-sm"></i>
Expand Down

0 comments on commit 9fb52b6

Please sign in to comment.