From 849b41dc9ea4b1e1521cdf84e246457b31c90e7f Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 19 Jun 2019 15:22:22 +0200 Subject: [PATCH] Fix null value being inserted --- Controller/BaseController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Controller/BaseController.php b/Controller/BaseController.php index cb8dce1..25c2435 100644 --- a/Controller/BaseController.php +++ b/Controller/BaseController.php @@ -40,7 +40,9 @@ abstract class BaseController extends AbstractController foreach ($configuration as $config) { $name = $config['name']; - $param->set($name, $result[$name]); + if (null !== $result[$name] || CheckboxType::class == $config['type']) { + $param->set($name, $result[$name]); + } } $this->addFlash('success', 'Updating parameters successful');