From f951e1b3d1fa8aec368f1436bf3ebd63195467bd Mon Sep 17 00:00:00 2001 From: Mike Alhayek Date: Fri, 18 Oct 2024 10:25:51 -0700 Subject: [PATCH] Fix content type draftable settings Fix #16907 --- .../Editors/ContentTypeSettingsDisplayDriver.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/OrchardCore.Modules/OrchardCore.ContentTypes/Editors/ContentTypeSettingsDisplayDriver.cs b/src/OrchardCore.Modules/OrchardCore.ContentTypes/Editors/ContentTypeSettingsDisplayDriver.cs index 3d4c47ac1dc..8b6f1758c5f 100644 --- a/src/OrchardCore.Modules/OrchardCore.ContentTypes/Editors/ContentTypeSettingsDisplayDriver.cs +++ b/src/OrchardCore.Modules/OrchardCore.ContentTypes/Editors/ContentTypeSettingsDisplayDriver.cs @@ -86,6 +86,11 @@ private static void Apply(UpdateTypeEditorContext context, ContentTypeSettingsVi { context.Builder.Listable(model.Listable); } + + if (options.ShowDraftable) + { + context.Builder.Draftable(model.Draftable); + } } private async Task GetOptionsAsync(ContentTypeDefinition contentTypeDefinition, string stereotype)