mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-24 00:29:47 -05:00
'Display Name' and 'Description' can be left empty.
This commit is contained in:
parent
a7b86f956c
commit
e2fa339f99
1 changed files with 3 additions and 1 deletions
|
|
@ -169,9 +169,11 @@ class BpConfigForm extends BpConfigBaseForm
|
||||||
}
|
}
|
||||||
$meta = $config->getMetadata();
|
$meta = $config->getMetadata();
|
||||||
foreach ($this->getValues() as $key => $value) {
|
foreach ($this->getValues() as $key => $value) {
|
||||||
if ($key !== 'Backend' && ($value === null || $value === '')) {
|
if (! in_array($key, ['Title', 'Description', 'Backend'], true)
|
||||||
|
&& ($value === null || $value === '')) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($meta->hasKey($key)) {
|
if ($meta->hasKey($key)) {
|
||||||
$meta->set($key, $value);
|
$meta->set($key, $value);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue