Closed (outdated)
Project:
Drupal core
Version:
8.5.x-dev
Component:
media system
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Jul 2017 at 17:44 UTC
Updated:
16 Oct 2017 at 04:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
wim leersComment #3
seanbJust looked into this. This was changed in #2831274-59: Bring Media entity module to core as Media module to address the comment in 54.2. It looks like
setRevisionCreationTime()is only called inContentEntityForm.Not exactly sure what the best way is to fix this. For media revisions created through the form the revision timestamp is changed as it should in
ContentEntityForm. For new media the revision_created value is added by the default value of thecreatedfield type. When creating new revisions for existing media through code though, the revision timestamp never seems to be updated. It looks like this is also an issue for nodes.I guess the solution would be to stop setting the revision timestamp in
ContentEntityFormand always callsetRevisionCreationTime()inpreSaveRevision(). I don't think developers should need to set the revision timestamp. So in this case add the changes in media to node and block content as well.Comment #4
seanbLet's see what the testbot thinks of this.
Comment #6
seanbNow with the correct column name for nodes..
Comment #8
berdirMaybe we can also merge this into #2869056: Automatically set revision user/log information/created time on entity revisions?
Comment #9
wim leers+1!
Comment #11
vijaycs85Some of the changes here are already in media and moved some of them to #2869056: Automatically set revision user/log information/created time on entity revisions
Comment #12
seanb