Closed (fixed)
Project:
Drupal core
Version:
8.5.x-dev
Component:
content_translation.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Mar 2018 at 22:02 UTC
Updated:
20 Mar 2018 at 04:09 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
plachHere's a fix, tests coming soon.
Comment #3
plachComment #4
plachHere's a test only patch.
Comment #5
plachAnd here's the full patch.
Comment #6
plachComment #8
plachComment #9
plachGábor suggested that there should be an explanation on the UI when the checkbox is disabled. Screenshot updated.
Comment #10
plachSorry, the interdiff was correct, but the patch was the wrong one.
Comment #11
plach(hidden outdated files)
Comment #12
plach@catch suggested a wording improvement in Slack
Comment #13
catchThe approach here makes sense to me, I never understood how untranslatable fields could work with draft revisions and this essentially stops us having to worry any more.
One nit:
I think two early return TRUE; instead of the assignment might make this more readable, with just return FALSE at the end.
Comment #14
plachComment #15
catchApart from the workaround this is a straightforward change, and we have an issue open to add the API that would allow us to remove the workaround at #2942907: Entity system does not provide an API for retrieving an entity variant that is safe for editing (or possibly a further follow-up to that issue).
Moving to RTBC.
Comment #16
effulgentsia commentedAdding reviewer credit.
Comment #19
effulgentsia commentedI disagree. #2878556: Ensure that changes to untranslatable fields affect only one translation in pending revisions already solved the problem of changing UT fields in pending revisions. That issue introduced constraints to disallow that. This issue isn't about that: the s.t.r. only involve changing translatable fields in a pending revision, and UT fields in a default revision. At least in theory, that should be possible to work as expected without forcing the "Hide non translatable fields on translation forms" checkbox. However, given that this Critical bug exists with that checkbox off, I agree with implementing this patch as a stop-gap until having that checkbox unchecked can be made to work correctly without this data integrity bug.
Therefore, pushed to 8.6.x and 8.5.x.