1
0
Fork 0
mirror of synced 2024-06-13 08:14:46 +12:00

Fix error on null default values

This commit is contained in:
kodumbeats 2021-08-27 19:42:53 -04:00
parent 8d7b4a9c2d
commit ed70582945

View file

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