Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
trusted_reverse_proxy
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
trusted_reverse_proxy
Merge requests
!1
#3267588
: Check if the original severity exists before comparing it, to avoid the notice
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Open
#3267588
: Check if the original severity exists before comparing it, to avoid the notice
issue/trusted_reverse_proxy-3267588:3267588-notice-undefined-index
into
1.0.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Open
#3267588: Check if the original severity exists before comparing it, to avoid the notice
Andrea Cividini
requested to merge
issue/trusted_reverse_proxy-3267588:3267588-notice-undefined-index
into
1.0.x
Mar 3, 2022
Overview
0
Commits
1
Pipelines
0
Changes
1
Closes
#3267588
0
0
Merge request reports
Compare
1.0.x
1.0.x (HEAD)
and
latest version
latest version
a80fbd65
1 commit,
Mar 3, 2022
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
trusted_reverse_proxy.module
+
1
−
1
View file @ b4dc7f3e
Edit in single-file editor
Open in Web IDE
Show full file
@@ -21,7 +21,7 @@ function trusted_reverse_proxy_preprocess_status_report_page(&$variables) {
$container
=
\Drupal
::
getContainer
();
$severity
=
$container
->
getParameter
(
'trusted_reverse_proxy'
);
$originalSeverity
=
$variables
[
'requirements'
][
'#requirements'
][
'trusted_host_patterns'
][
'severity'
];
$originalSeverity
=
$variables
[
'requirements'
][
'#requirements'
][
'trusted_host_patterns'
][
'severity'
]
??
NULL
;
if
(
$originalSeverity
!==
$severity
[
'severity'
])
{
$variables
[
'requirements'
][
'#requirements'
][
'trusted_host_patterns'
][
'severity'
]
=
$severity
[
'severity'
];
// Mock an element for rendering to retrieve the counters.
Loading