Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cmrf_form_processor
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
cmrf_form_processor
Commits
e1221d56
Commit
e1221d56
authored
Jun 4, 2024
by
dnt
Committed by
Klaas Eikelboom
Jun 4, 2024
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3447570
by dnt, Amandeep123: Undefined array key access in CMRFDisplay
parent
1bcd323e
No related branches found
No related tags found
1 merge request
!23
CMRFDisplay: Avoid undefined array key access
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/cmrf_form_processor_display/src/Element/CMRFDisplay.php
+1
-2
1 addition, 2 deletions
...s/cmrf_form_processor_display/src/Element/CMRFDisplay.php
with
1 addition
and
2 deletions
modules/cmrf_form_processor_display/src/Element/CMRFDisplay.php
+
1
−
2
View file @
e1221d56
...
@@ -8,7 +8,6 @@ namespace Drupal\cmrf_form_processor_display\Element;
...
@@ -8,7 +8,6 @@ namespace Drupal\cmrf_form_processor_display\Element;
* @license GPL-2.0-or-later
* @license GPL-2.0-or-later
*/
*/
use
Drupal\Core\Render\Element\RenderElement
;
use
Drupal\Core\Render\Element\RenderElement
;
/**
/**
...
@@ -41,7 +40,7 @@ class CMRFDisplay extends RenderElement {
...
@@ -41,7 +40,7 @@ class CMRFDisplay extends RenderElement {
*/
*/
public
static
function
preRenderCmrfDisplay
(
array
$element
)
{
public
static
function
preRenderCmrfDisplay
(
array
$element
)
{
if
(
isset
(
$element
[
'#default_value'
]))
{
if
(
isset
(
$element
[
'#default_value'
]))
{
switch
(
$element
[
'#cmrf_display_mode'
])
{
switch
(
$element
[
'#cmrf_display_mode'
]
??
NULL
)
{
case
'link'
:
case
'link'
:
$markup
=
t
(
'<a target="_blank" href=":url">:text</a>.'
,
[
$markup
=
t
(
'<a target="_blank" href=":url">:text</a>.'
,
[
':url'
=>
$element
[
'#default_value'
],
':url'
=>
$element
[
'#default_value'
],
...
...
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
sign in
to comment