mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-24 10:11:35 +08:00
Update WidgetCommandsService.cs (#7477)
Removed hard coded override of the RenderTitle property for Menu Widgets.
This commit is contained in:
committed by
Sébastien Ros
parent
77db3dd32c
commit
c06b2f18a0
@@ -77,7 +77,6 @@ namespace Orchard.Widgets.Services {
|
|||||||
var menu = _menuService.GetMenu(menuName);
|
var menu = _menuService.GetMenu(menuName);
|
||||||
|
|
||||||
if (menu != null) {
|
if (menu != null) {
|
||||||
widget.RenderTitle = false;
|
|
||||||
widget.As<MenuWidgetPart>().MenuContentItemId = menu.ContentItem.Id;
|
widget.As<MenuWidgetPart>().MenuContentItemId = menu.ContentItem.Id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -103,4 +102,4 @@ namespace Orchard.Widgets.Services {
|
|||||||
_contentManager.Publish(widget.ContentItem);
|
_contentManager.Publish(widget.ContentItem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user