Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
field_inheritance
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
field_inheritance
Commits
8dd3f25f
Commit
8dd3f25f
authored
2 weeks ago
by
Pieter Frenssen
Committed by
Pablo López
2 weeks ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3449100
: Not possible to disable all entity types or bundles in settings form
parent
0a1cd56b
Branches
2.0.x
No related tags found
1 merge request
!10
Do not accidentally allow all entity types or bundles when none are enabled.
Pipeline
#503662
failed
2 weeks ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
field_inheritance.module
+2
-2
2 additions, 2 deletions
field_inheritance.module
with
2 additions
and
2 deletions
field_inheritance.module
+
2
−
2
View file @
8dd3f25f
...
...
@@ -147,14 +147,14 @@ function field_inheritance_form_alter(&$form, FormStateInterface $form_state, $f
$included_entities
=
$config
->
get
(
'included_entities'
);
$included_bundles
=
$config
->
get
(
'included_bundles'
);
if
(
!
empty
(
$included_entities
)
)
{
if
(
$included_entities
!==
NULL
)
{
$included_entities
=
explode
(
','
,
$included_entities
);
if
(
array_search
(
$entity_type
,
$included_entities
)
===
FALSE
)
{
return
;
}
}
if
(
!
empty
(
$included_bundles
)
)
{
if
(
$included_bundles
!==
NULL
)
{
$included_bundles
=
explode
(
','
,
$included_bundles
);
if
(
array_search
(
$entity_type
.
':'
.
$bundle
,
$included_bundles
)
===
FALSE
)
{
return
;
...
...
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