From 813530f5e14137f33b975dfc630494bbe0bbb598 Mon Sep 17 00:00:00 2001 From: Mike Alhayek Date: Fri, 18 Oct 2024 10:59:42 -0700 Subject: [PATCH] Fix content type draftable settings (#16910) --- .../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)