mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Add missing IdentityPart (needed for export/import) to ContainerWidget
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user