Skip to content
Snippets Groups Projects
Commit ccab7562 authored by artis.bajars's avatar artis.bajars Committed by Mingsong
Browse files

Issue #3278219: Term overview for submit does not account for bundle settings

parent 5aa230e0
No related branches found
No related tags found
No related merge requests found
......@@ -96,9 +96,14 @@ class HmOverviewTerms extends OverviewTerms {
// If the taxonomy setup plugin is enabled,
// override the submitForm function.
if (!empty($allowed_setup_plugins['hm_setup_taxonomy'])) {
// We don't need to do anything here,
// as the taxonomy plugin take it over.
return;
$plugin_settings = $config->get('setup_plugin_settings');
$enabled_bundles = array_keys(array_filter($plugin_settings['hm_setup_taxonomy']['bundle']));
$vocabulary = $form_state->get(['taxonomy', 'vocabulary']);
if (in_array($vocabulary->id(), $enabled_bundles)) {
// We don't need to do anything here,
// as the taxonomy plugin take it over.
return;
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment