Add missing IdentityPart (needed for export/import) to ContainerWidget

This commit is contained in:
Lombiq
2016-01-04 19:16:48 +01:00
parent aaced541e3
commit e04b020132

View File

@@ -38,6 +38,7 @@ namespace Orchard.Core.Containers {
.WithPart("CommonPart")
.WithPart("WidgetPart")
.WithPart("ContainerWidgetPart")
.WithIdentity()
.WithSetting("Stereotype", "Widget"));
ContentDefinitionManager.AlterPartDefinition("ContainerPart", part => part
@@ -48,7 +49,7 @@ namespace Orchard.Core.Containers {
.Attachable()
.WithDescription("Allows your content item to be contained by a content item that has the ContainerPart attached."));
return 6;
return 7;
}
public int UpdateFrom1() {
@@ -123,5 +124,12 @@ namespace Orchard.Core.Containers {
return 6;
}
public int UpdateFrom6() {
ContentDefinitionManager.AlterTypeDefinition("ContainerWidget", type => type
.WithIdentity());
return 7;
}
}
}