UserGroupBackendForm: Do not persist null values, really

Revert this once #9376 has been fixed.

refs #9376
This commit is contained in:
Johannes Meyer 2015-06-05 15:45:33 +02:00
parent e6837cf9e9
commit 975edbe548
1 changed files with 8 additions and 1 deletions

View File

@ -123,7 +123,14 @@ class UserGroupBackendForm extends ConfigForm
unset($data['name']);
}
$this->config->setSection($name, $backendConfig->merge($data));
$backendConfig->merge($data);
foreach ($backendConfig->toArray() as $k => $v) {
if ($v === null) {
unset($backendConfig->$k);
}
}
$this->config->setSection($name, $backendConfig);
return $this;
}