Commit 3f5715af authored by Igor Biki's avatar Igor Biki
Browse files

ISTWCMS-4600: Fix for display of inaccessible menu items.

parent 76ccf4cb
......@@ -57,7 +57,11 @@ class ContentManagementMenuBlock extends BlockBase implements ContainerFactoryPl
// been configured. If not (else block) use secondary menu by
// default.
if (isset($configured[$id])) {
$selected_secondary = array_keys(array_filter($configured[$id] + $secondary_menu));
foreach ($secondary_menu as $key => $value) {
if (!empty($configured[$id][$key])) {
$selected_secondary[] = $key;
}
}
}
else {
$selected_secondary = array_keys($secondary_menu);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment