Needs review
Project:
Entity Translation
Version:
7.x-1.x-dev
Component:
Base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Apr 2012 at 00:02 UTC
Updated:
6 Oct 2015 at 14:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
plachNeither nodes have such an information. Am I missing something?
Comment #2
timofey commentedYou're right. I guess my question should be - Should there be an "entity_revision_translation" table to store revision info? Like node_revision, field_revision tables...
Comment #3
timofey commentedFor example, my site has contributors and translators. I can see who last contributed and edited the contribution. But I cannot see who last updated the translation, I can only see who originally translated
Comment #4
plachComment #5
odegard commentedReviving this instead of creating new thread.
Since timofey posted the bug in 2012 ET now supports revisions. Great!
However, this particular feature is still missing, or rather, i think it's a bug.
This is what happens in doSaveTranslations now:
Adding arrays adds, but does not replace/update values that are old. $defaults['uid'] is set correctly, but not saved. So the new revision will always show the original authors uid.
I've made a stab at fixing this, see attached patch.
The foreach loop is changed to
I'm thinking that we need to make sure we're not polluting the original translation and only update the correct translation (in case there are > 2 languages enabled).
I'm not 100% sure $this->getFormLanguage() is the correct method for this purpose, but it seems to work.