Problem/Motivation
Currently, when media are added via the media library form (for example when the media plugin is enabled in CKEditor), the initial revision of those media items does not have a revision user set.
Related core issue: #2869056: Automatically set revision user/log information/created time on entity revisions
Steps to reproduce
- Install Drupal with the standard install profile which includes media + media library along with the image media type configured to "create new revisions" by default.
- Add the media embed button with image media enabled to the basic html WYSIWYG profile
- Create a new page. In the body field WYSIWYG, click the media button.
- Add a new image media item via the media library form
- View the revisions tab for the created media and observe that the user associated with the initial revision is "Anonymous"
Proposed resolution
Add a media presave function to set the revision user on new content to the creator if revision user is not set until this is fixed in Drupal core.
Issue fork revision_extras-3553496
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
Comment #2
jastraat commentedComment #3
jastraat commentedComment #6
jastraat commented