Fix error on null default values
This commit is contained in:
parent
8d7b4a9c2d
commit
ed70582945
1 changed files with 3 additions and 0 deletions
|
@ -189,6 +189,9 @@ Database::addFilter('defaultValue',
|
|||
return json_encode(['value' => $value]);
|
||||
},
|
||||
function($value) {
|
||||
if (is_null($value)) {
|
||||
return null;
|
||||
}
|
||||
return json_decode($value, true)['value'];
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue