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

  1. 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.
  2. Add the media embed button with image media enabled to the basic html WYSIWYG profile
  3. Create a new page. In the body field WYSIWYG, click the media button.
  4. Add a new image media item via the media library form
  5. 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.

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

jastraat created an issue. See original summary.

jastraat’s picture

Issue summary: View changes
jastraat’s picture

Issue summary: View changes

  • jastraat committed c5c15c84 on 1.0.x
    [#3553496] feat: Core fix: media added via media library form have a...
jastraat’s picture

Status: Active » Fixed

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

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

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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