#19023: Making WidgetPart attachable

Work Item: 19023

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-09-19 11:53:45 -07:00
parent 877d2d1394
commit b27303c9aa

View File

@@ -1,5 +1,6 @@
using Orchard.ContentManagement;
using Orchard.ContentManagement.MetaData;
using Orchard.Core.Contents.Extensions;
using Orchard.Data.Migration;
using Orchard.Widgets.Models;
@@ -78,5 +79,12 @@ namespace Orchard.Widgets {
return 3;
}
public int UpdateFrom3()
{
ContentDefinitionManager.AlterPartDefinition("WidgetPart", builder => builder.Attachable());
return 4;
}
}
}