mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-05-28 04:02:39 -04:00
parent
18e413d15a
commit
f3124ffd59
1 changed files with 18 additions and 0 deletions
|
|
@ -33,6 +33,24 @@ class UserGroupForm extends RepositoryForm
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Update a group
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
protected function onUpdateSuccess()
|
||||
{
|
||||
if (parent::onUpdateSuccess()) {
|
||||
if (($newName = $this->getValue('group_name')) !== $this->getIdentifier()) {
|
||||
$this->getRedirectUrl()->setParam('group', $newName);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create and add elements to this form to delete a group
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue