#18914: Fixing breadcrumb widget when using another menu

Work Item: 18914

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-08-21 11:52:26 -07:00
parent 5208b974f4
commit c68af64360

View File

@@ -79,7 +79,7 @@ namespace Orchard.Core.Navigation.Drivers {
dynamic menuShape = shapeHelper.Menu();
if (part.Breadcrumb) {
if (part.Breadcrumb && selectedPath != null) {
menuItems = selectedPath;
foreach (var menuItem in menuItems) {
menuItem.Items = Enumerable.Empty<MenuItem>();