Problem/Motivation

It currently works to save the moderation_state when adding it as a site setting value. But the UI does not respect this since the content_moderation module alters the forms and loads the status by itself, which of course does not respect the override.

Steps to reproduce

- Add moderation_state and status as overrideable fields
- Create an override where moderation state gets changed
- Go back to the override form, it now displays the wrong value
- Also even though reverting works, the override status will always remain overriden since the moderation_state and status field always require a value and the logic checks for isEmpty

Proposed resolution

- Add submodule for plug&play integration (implement the overrideable fields hook)
- Alter form to fix values
- Make override status alterable and add custom logic

API changes

- Add new hook to alter the has_override_for_site behavior

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

hydra created an issue. See original summary.

hydra changed the visibility of the branch 3577528- to hidden.

hydra changed the visibility of the branch 3577528- to active.

hydra changed the visibility of the branch 3577528- to hidden.

harlor made their first commit to this issue’s fork.

  • harlor committed a185e828 on 1.x authored by hydra
    feat: #3577528 Add deeper UI integration for content_moderation
    
    By:...
harlor’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.