mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-20 23:00:16 -05:00
BpConfigBaseForm: Fix backend change
Do not use the previously saved backend if the value has been changed to `Use the configured default backend` (null)
This commit is contained in:
parent
5d905426b6
commit
afff0bea34
1 changed files with 1 additions and 1 deletions
|
|
@ -167,7 +167,7 @@ class BpConfigForm extends BpConfigBaseForm
|
||||||
}
|
}
|
||||||
$meta = $config->getMetadata();
|
$meta = $config->getMetadata();
|
||||||
foreach ($this->getValues() as $key => $value) {
|
foreach ($this->getValues() as $key => $value) {
|
||||||
if ($value === null || $value === '') {
|
if ($key !== 'Backend' && ($value === null || $value === '')) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ($meta->hasKey($key)) {
|
if ($meta->hasKey($key)) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue