mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-08-01 18:45:54 +08:00
parent
fcae27240c
commit
fc715b59ef
@ -42,7 +42,7 @@ namespace Orchard.CustomForms.Controllers {
|
||||
if (options == null)
|
||||
options = new CustomFormIndexOptions();
|
||||
|
||||
var query = Services.ContentManager.Query().ForType("CustomForm", "CustomFormWidget");
|
||||
var query = Services.ContentManager.Query().ForType("CustomForm", "CustomFormWidget").ForVersion(VersionOptions.Latest);
|
||||
|
||||
switch (options.Filter) {
|
||||
case CustomFormFilter.All:
|
||||
|
@ -45,6 +45,14 @@ namespace Orchard.CustomForms {
|
||||
return 2;
|
||||
}
|
||||
|
||||
public int UpdateFrom2() {
|
||||
ContentDefinitionManager.AlterTypeDefinition("CustomForm", cfg =>
|
||||
cfg.Draftable(false)
|
||||
);
|
||||
|
||||
return 3;
|
||||
}
|
||||
|
||||
public void Uninstall() {
|
||||
ContentDefinitionManager.DeleteTypeDefinition("CustomForm");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user