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:
Sukhwinder Dhillon 2021-10-12 18:34:24 +02:00 committed by raviks789
parent 5d905426b6
commit afff0bea34

View file

@ -167,7 +167,7 @@ class BpConfigForm extends BpConfigBaseForm
}
$meta = $config->getMetadata();
foreach ($this->getValues() as $key => $value) {
if ($value === null || $value === '') {
if ($key !== 'Backend' && ($value === null || $value === '')) {
continue;
}
if ($meta->hasKey($key)) {