UserGroupBackendForm: Unset the `name' property, always

refs #7343
This commit is contained in:
Johannes Meyer 2015-06-05 15:41:24 +02:00
parent 5688f0cb85
commit e9e97cb1b3
1 changed files with 6 additions and 3 deletions

View File

@ -114,9 +114,12 @@ class UserGroupBackendForm extends ConfigForm
}
$backendConfig = $this->config->getSection($name);
if (isset($data['name']) && $data['name'] !== $name) {
$this->config->removeSection($name);
$name = $data['name'];
if (isset($data['name'])) {
if ($data['name'] !== $name) {
$this->config->removeSection($name);
$name = $data['name'];
}
unset($data['name']);
}