Fix null value being inserted

This commit is contained in:
Tim 2019-06-19 15:22:22 +02:00
parent 94e41b482a
commit 849b41dc9e

View File

@ -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');