parent
18e413d15a
commit
f3124ffd59
|
@ -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 New Issue