Problem/Motivation
Publishing options > Default options > "Published" checkbox won't enable. FWIW #1, it seems like a regression as far as I can tell -- Ilast week, I updated my site from 8.5.3 to 8.5.6, and that's when the problem started. FWIW #2: At first I thought it was related to #2927408: Default value not correctly set in the ModerationStateWidget. but they explained to me that other issue is about the content form, not content type settings form.
Steps to reproduce:
- I edit a content type (admin/structure/types/manage/mytype)
- Publishing options > Default options > "Published" is unchecked
- I enable "Published"
- I save the form
- I edit that same ctype again (admin/structure/types/manage/mytype)
- Publishing options > Default options > "Published" is unchecked
Other notes:
- Also, when I create a new node of type "mytype," the published flag at the bottom is set to "Draft."
- CMI: I could've sworn that
'node.type.mytype:status'
corresponded with the default published status for that ctype, but when I check this config value (drush cget node.type.mytype status
), it says "true", so idk what that means -- just mentioning in case it helps. - I feel like there's something weird with content moderation, too, and idk if it's related: In workflow settings (admin/config/workflow/workflows/manage/editorial), I enabled it for all but 2 ctypes, but when I go to the ctype settings form for the ctypes for which the editorial workflow is NOT supposed to be enabled, the checkbox for Publishing options > Default options > Create new revision, is enabled and grayed out. Again, just mentioning in case it's relevant!
"About me"
- Drupal 8.5.6
- Content moderation enabled for most but not all node types -- using the out-of-the-box content publishing workflow.
- Using CMI to fully codify/version-control site config -- see below for a note on this.
Proposed resolution
Fix so that default published status can be set to published :).
Remaining tasks
N/A
User interface changes
N/A
API changes
N/A
Data model changes
N/A