Skip to content

Commit f8e7f2b

Browse files
committed
Fix admin menu bug
Remove empty column from admin menu if menu items > limit; See screenshot http://c2n.me/3yO1R1h.png
1 parent a5fa3af commit f8e7f2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Backend/Block/Menu.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ public function renderNavigation($menu, $level = 0, $limit = 0, $colBrakes = [])
450450
$itemName = substr($menuId, strrpos($menuId, '::') + 2);
451451
$itemClass = str_replace('_', '-', strtolower($itemName));
452452

453-
if (count($colBrakes) && $colBrakes[$itemPosition]['colbrake']) {
453+
if (count($colBrakes) && $colBrakes[$itemPosition]['colbrake'] && $itemPosition != 1) {
454454
$output .= '</ul></li><li class="column"><ul role="menu">';
455455
}
456456

0 commit comments

Comments
 (0)