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,8 +40,10 @@ abstract class BaseController extends AbstractController
foreach ($configuration as $config) { foreach ($configuration as $config) {
$name = $config['name']; $name = $config['name'];
if (null !== $result[$name] || CheckboxType::class == $config['type']) {
$param->set($name, $result[$name]); $param->set($name, $result[$name]);
} }
}
$this->addFlash('success', 'Updating parameters successful'); $this->addFlash('success', 'Updating parameters successful');
return $this->redirect($request->getRequestUri()); return $this->redirect($request->getRequestUri());