Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
advanced_datalayer
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
advanced_datalayer
Merge requests
!9
Resolve
#3456701
"Passing null to"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve
#3456701
"Passing null to"
issue/advanced_datalayer-3456701:3456701-passing-null-to
into
2.x
Overview
0
Commits
2
Pipelines
0
Changes
1
Merged
Abhishek Gupta
requested to merge
issue/advanced_datalayer-3456701:3456701-passing-null-to
into
2.x
10 months ago
Overview
0
Commits
2
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
2.x
2.x (base)
and
latest version
latest version
50693057
2 commits,
10 months ago
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Form/AdvancedDatalayerDefaultsForm.php
+
2
−
2
Options
@@ -150,8 +150,8 @@ class AdvancedDatalayerDefaultsForm extends EntityForm {
// Find the current entity type and bundle.
$datalayer_defaults_id
=
$datalayer_defaults
->
id
();
$type_parts
=
explode
(
'__'
,
$datalayer_defaults_id
);
$entity_type
=
$type_parts
[
0
];
$type_parts
=
$datalayer_defaults_id
?
explode
(
'__'
,
$datalayer_defaults_id
)
:
[]
;
$entity_type
=
$type_parts
[
0
]
??
NULL
;
$entity_bundle
=
$type_parts
[
1
]
??
NULL
;
// Chek if need display only specific tags for this entity type and bundle.
Loading