Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
siteimprove
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
siteimprove
Commits
614c2ea4
Commit
614c2ea4
authored
1 year ago
by
Gordon Heydon
Committed by
bartvig
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3381807
: Settings form is not accessing config correctly.
parent
60484847
No related branches found
No related tags found
1 merge request
!18
Issue #3381807: Settings form is not accessing config correctly.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Form/SettingsForm.php
+4
-2
4 additions, 2 deletions
src/Form/SettingsForm.php
with
4 additions
and
2 deletions
src/Form/SettingsForm.php
+
4
−
2
View file @
614c2ea4
...
...
@@ -124,7 +124,7 @@ class SettingsForm extends ConfigFormBase {
* {@inheritdoc}
*/
public
function
buildForm
(
array
$form
,
FormStateInterface
$form_state
)
{
$config
=
$this
->
config
Factory
->
get
(
'siteimprove.settings'
);
$config
=
$this
->
config
(
'siteimprove.settings'
);
$form
[
'container'
]
=
[
'#title'
=>
$this
->
t
(
'Token'
),
...
...
@@ -249,10 +249,12 @@ class SettingsForm extends ConfigFormBase {
];
if
(
$config
->
get
(
'prepublish_enabled'
))
{
$full_config
=
$this
->
configFactory
->
get
(
'siteimprove.settings'
);
// Check API if prepublish checking has been enabled.
$url
=
'https://api.siteimprove.com/v2/settings/content_checking'
;
$res
=
$this
->
httpClient
->
request
(
'GET'
,
$url
,
[
'auth'
=>
[
$config
->
get
(
'api_username'
),
$config
->
get
(
'api_key'
)],
'auth'
=>
[
$
full_
config
->
get
(
'api_username'
),
$
full_
config
->
get
(
'api_key'
)],
'headers'
=>
[
'Accept'
=>
'application/json'
,
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment