Fix null value being inserted
This commit is contained in:
parent
94e41b482a
commit
849b41dc9e
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user