Skip to content
Snippets Groups Projects
Unverified Commit 0a6ed0b5 authored by Pieter Frenssen's avatar Pieter Frenssen Committed by Pablo López
Browse files

Issue #3449100: Not possible to disable all entity types or bundles in settings form

parent bb0ef6a9
Branches
Tags
No related merge requests found
Pipeline #503664 passed
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment