UserGroupBackendForm: Do not persist null values, really
Revert this once #9376 has been fixed. refs #9376
This commit is contained in:
parent
e6837cf9e9
commit
975edbe548
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue