Needs work
Project:
Drupal core
Version:
main
Component:
content_moderation.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Aug 2018 at 07:16 UTC
Updated:
22 Mar 2019 at 05:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sam152 commentedComment #3
berdirInstead of hiding, maybe als disable with a comment that points to the workflow settings form?
Comment #4
alisonStrongly agree with @Berdir -- simply b/c if it's hidden, I'll be confused about where the setting is / what I'm supposed to do / etc. Also b/c if you aren't using a workflow, hiding would mean that the ctype settings form is different, and I think having the form be consistent is a good thing!
Thank you for the issue!
Comment #5
alisonComment #6
scott_euser commentedJust by enabling Content Moderation, the published option at `/admin/structure/types/manage/page` immediately does not work even if 'page' is not selected as a content type. Is that the intention?
List of workflows after enabling Content Moderation:

Default settings of Content Moderation (ie, no node type selected):

Comment #7
scott_euser commentedHere is a first start on this, but I am guessing the condition should be checking if a moderation handler is selected for the current node type (assuming my comment #6 is a bug) rather than just checking if Content Moderation is enabled. If it is not a bug, should we just be checking if any moderation handler is enabled in case a contrib module provides one?
Comment #8
seanbCan we do this via a form alter in content moderation?
We should probably also add a test for this.
Comment #9
sam152 commentedHey @scott_euser, I think the bug you are describing was fixed in #2946750: Node revisions forced even if bundle not under moderation workflow, but is pending a review. Would be great if you have time to give it a look.
Comment #11
sam152 commentedYeah, we already have an implementation which alters bundle forms and delegates them to the moderation handlers, so I think we should put this in
NodeModerationHandler.