mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-02 19:44:02 +08:00
Fixing MenuPart export
--HG-- branch : 1.x
This commit is contained in:
@@ -88,6 +88,11 @@ namespace Orchard.Core.Navigation.Drivers {
|
||||
}
|
||||
|
||||
protected override void Exporting(MenuPart part, ContentManagement.Handlers.ExportContentContext context) {
|
||||
// is it on a menu ?
|
||||
if(part.Menu == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
var menu = _orchardServices.ContentManager.Get(part.Menu.Id);
|
||||
var menuIdentity = _orchardServices.ContentManager.GetItemMetadata(menu).Identity;
|
||||
context.Element(part.PartDefinition.Name).SetAttributeValue("Menu", menuIdentity);
|
||||
|
||||
Reference in New Issue
Block a user