Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WCMS
uw_dashboard
Commits
3f5715af
Commit
3f5715af
authored
Feb 03, 2021
by
Igor Biki
Browse files
ISTWCMS-4600: Fix for display of inaccessible menu items.
parent
76ccf4cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Plugin/Block/ContentManagementMenuBlock.php
View file @
3f5715af
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment