Skip to content
Snippets Groups Projects
Commit 245a8f2c authored by Josué González's avatar Josué González Committed by Aaron Bauman
Browse files

Issue #3497252 by josue2591: Wrong default value on Settings Form and some...

Issue #3497252 by josue2591: Wrong default value on Settings Form and some fields not being save using the interface
parent a26366fe
No related branches found
No related tags found
1 merge request!90Set proper default value for long_term_cache_lifetime in SettingsForm.
Pipeline #451422 failed
......@@ -127,7 +127,7 @@ class SettingsForm extends ConfigFormBase {
'#title' => $this->t($definition['long_term_cache_lifetime']['label']),
'#description' => $this->t($definition['long_term_cache_lifetime']['description']),
'#type' => 'number',
'#default_value' => $config->get('short_term_cache_lifetime'),
'#default_value' => $config->get('long_term_cache_lifetime'),
];
if ($this->moduleHandler->moduleExists('salesforce_push')) {
......@@ -228,6 +228,8 @@ class SettingsForm extends ConfigFormBase {
$config = $this->config('salesforce.settings');
$config->set('show_all_objects', $form_state->getValue('show_all_objects'));
$config->set('standalone', $form_state->getValue('standalone'));
$config->set('short_term_cache_lifetime', $form_state->getValue('short_term_cache_lifetime'));
$config->set('long_term_cache_lifetime', $form_state->getValue('long_term_cache_lifetime'));
$config->set('global_push_limit', $form_state->getValue('global_push_limit'));
$config->set('pull_max_queue_size', $form_state->getValue('pull_max_queue_size'));
$config->set('limit_mapped_object_revisions', $form_state->getValue('limit_mapped_object_revisions'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment