From b2761dcd13334a2553f4b1b670bca0dd4a7d236a Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Fri, 18 Oct 2013 17:18:55 -0700 Subject: [PATCH] #19967: Fixing Menu import/export Work Item: 19967 --- src/Orchard.Web/Core/Navigation/Handlers/MenuHandler.cs | 8 -------- src/Orchard.Web/Core/Navigation/Migrations.cs | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Orchard.Web/Core/Navigation/Handlers/MenuHandler.cs b/src/Orchard.Web/Core/Navigation/Handlers/MenuHandler.cs index 285afd182..c190b019b 100644 --- a/src/Orchard.Web/Core/Navigation/Handlers/MenuHandler.cs +++ b/src/Orchard.Web/Core/Navigation/Handlers/MenuHandler.cs @@ -15,14 +15,6 @@ namespace Orchard.Core.Navigation.Handlers { _contentManager = contentManager; } - protected override void GetItemMetadata(GetContentItemMetadataContext context) { - if(context.ContentItem.ContentType != "Menu") { - return; - } - - context.Metadata.Identity.Add("name", context.ContentItem.As().Title); - } - protected override void Removing(RemoveContentContext context) { if (context.ContentItem.ContentType != "Menu") { return; diff --git a/src/Orchard.Web/Core/Navigation/Migrations.cs b/src/Orchard.Web/Core/Navigation/Migrations.cs index c46b38a2a..66e9d8f94 100644 --- a/src/Orchard.Web/Core/Navigation/Migrations.cs +++ b/src/Orchard.Web/Core/Navigation/Migrations.cs @@ -190,5 +190,13 @@ namespace Orchard.Core.Navigation { return 5; } + + public int UpdateFrom5() { + ContentDefinitionManager.AlterTypeDefinition("Menu", cfg => cfg + .WithPart("IdentityPart") + ); + + return 6; + } } } \ No newline at end of file