Error: Call to a member function language() on null

Created on 7 October 2022, about 2 years ago
Updated 21 February 2023, over 1 year ago

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

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇧🇪Belgium p-neyens

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024