From afff0bea344d6e6ce7c19b101dcfb8093ae72d63 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Tue, 12 Oct 2021 18:34:24 +0200 Subject: [PATCH] BpConfigBaseForm: Fix backend change Do not use the previously saved backend if the value has been changed to `Use the configured default backend` (null) --- application/forms/BpConfigForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/forms/BpConfigForm.php b/application/forms/BpConfigForm.php index 7895d00..531cf0f 100644 --- a/application/forms/BpConfigForm.php +++ b/application/forms/BpConfigForm.php @@ -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)) {