'Display Name' and 'Description' can be left empty.

This commit is contained in:
raviks789 2022-02-17 12:02:28 +01:00
parent a7b86f956c
commit e2fa339f99

View file

@ -169,9 +169,11 @@ class BpConfigForm extends BpConfigBaseForm
}
$meta = $config->getMetadata();
foreach ($this->getValues() as $key => $value) {
if ($key !== 'Backend' && ($value === null || $value === '')) {
if (! in_array($key, ['Title', 'Description', 'Backend'], true)
&& ($value === null || $value === '')) {
continue;
}
if ($meta->hasKey($key)) {
$meta->set($key, $value);
}