File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
app/code/Magento/Backend/Block Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -211,9 +211,12 @@ protected function _renderItemCssClass($menuItem, $level)
211
211
protected function _renderAnchor ($ menuItem , $ level )
212
212
{
213
213
if ($ level == 1 && $ menuItem ->getUrl () == '# ' ) {
214
- $ output = '<strong class="submenu-group-title" role="presentation"> '
215
- . '<span> ' . $ this ->_getAnchorLabel ($ menuItem ) . '</span> '
216
- . '</strong> ' ;
214
+ $ output = '' ;
215
+ if ($ menuItem ->hasChildren ()) {
216
+ $ output = '<strong class="submenu-group-title" role="presentation"> '
217
+ . '<span> ' . $ this ->_getAnchorLabel ($ menuItem ) . '</span> '
218
+ . '</strong> ' ;
219
+ }
217
220
} else {
218
221
$ output = '<a href=" ' . $ menuItem ->getUrl () . '" ' . $ this ->_renderItemAnchorTitle (
219
222
$ menuItem
You can’t perform that action at this time.
0 commit comments