Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
salesforce
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
salesforce
Merge requests
!90
Set proper default value for long_term_cache_lifetime in SettingsForm.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Set proper default value for long_term_cache_lifetime in SettingsForm.
issue/salesforce-3497252:3497252-wrong-default-value
into
5.1.x
Overview
0
Commits
2
Pipelines
4
Changes
1
Merged
Josué González
requested to merge
issue/salesforce-3497252:3497252-wrong-default-value
into
5.1.x
2 months ago
Overview
0
Commits
2
Pipelines
4
Changes
1
Expand
Closes
#3497252
0
0
Merge request reports
Compare
5.1.x
version 2
8c4a65ee
2 months ago
version 1
262e7407
2 months ago
5.1.x (base)
and
latest version
latest version
bf825817
2 commits,
2 weeks ago
version 2
8c4a65ee
2 commits,
2 months ago
version 1
262e7407
1 commit,
2 months ago
1 file
+
3
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Form/SettingsForm.php
+
3
−
1
Options
@@ -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'
));
Loading