If entity was cloned and the entity has the moderation state field and can be moderated.
The setTranslationModerationState method called the ContentModerationState::loadFromModeratedEntity() method to load a content moderation state. This one can return NULL and breaks the checks inside the setTranslationModerationState method

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

p-neyens created an issue. See original summary.

p-neyens’s picture

Assigned: p-neyens » Unassigned
Status: Active » Needs review
alexanderj’s picture

Assigned: Unassigned » alexanderj

hi, i will review it.

alexanderj’s picture

Assigned: alexanderj » Unassigned
Status: Needs review » Reviewed & tested by the community

I reviewed and tested your patch and everything is working correctly right now. So moving it to RTBC.

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

rajeshreeputra’s picture

Version: 8.x-1.0-beta7 » 2.x-dev
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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

j2’s picture

Any updates on when the fix for this issue will have a release?

rajeshreeputra’s picture

2.0.0-beta2 has been released with these changes.