Version 5.1 - All the GraphQL #32
@ -144,11 +144,13 @@ final class Settings {
|
|||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'title' => 'Cache Port',
|
'title' => 'Cache Port',
|
||||||
'description' => 'Port of the cache backend to connect to',
|
'description' => 'Port of the cache backend to connect to',
|
||||||
|
'default' => NULL,
|
||||||
],
|
],
|
||||||
'password' => [
|
'password' => [
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'title' => 'Cache Password',
|
'title' => 'Cache Password',
|
||||||
'description' => 'Password to connect to cache backend',
|
'description' => 'Password to connect to cache backend',
|
||||||
|
'default' => NULL,
|
||||||
],
|
],
|
||||||
'database' => [
|
'database' => [
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
@ -187,7 +189,8 @@ final class Settings {
|
|||||||
'port' => [
|
'port' => [
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'title' => 'Port',
|
'title' => 'Port',
|
||||||
'description' => 'Database connection port'
|
'description' => 'Database connection port',
|
||||||
|
'default' => NULL,
|
||||||
],
|
],
|
||||||
'database' => [
|
'database' => [
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
@ -246,6 +249,12 @@ final class Settings {
|
|||||||
{
|
{
|
||||||
foreach($value['fields'] as $k => $field)
|
foreach($value['fields'] as $k => $field)
|
||||||
{
|
{
|
||||||
|
if (empty($values[$key][$k]))
|
||||||
|
{
|
||||||
|
unset($value['fields'][$k]);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$value['fields'][$k]['disabled'] = FALSE;
|
$value['fields'][$k]['disabled'] = FALSE;
|
||||||
$value['fields'][$k]['display'] = TRUE;
|
$value['fields'][$k]['display'] = TRUE;
|
||||||
$value['fields'][$k]['readonly'] = FALSE;
|
$value['fields'][$k]['readonly'] = FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user