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:
4 Mar 2018 at 14:36 UTC
Updated:
21 Mar 2018 at 00:39 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
plachHere's a test-only patch.
Comment #3
plachAnd here's the full patch.
Comment #4
plachComment #6
catchAsked plach about this in slack. Feels like it ought somehow to be possible to mark a translation as outdated without having to create a new revision for each one - this would mean not marking the translations as affected though. Don't think we need to fix that in this issue buy maybe a follow-up to discuss.
Could we early return TRUE instead of the two breaks, and return FALSE at the end? Don't always like early returns, but given there's no logic based on $result it might be slightly more readable. I know this is a temporary function.
Thought about moving this to content_moderation but since it's @internal and we don't want anyone calling it, putting it in content_moderation for content_translation to call doesn't seem great either.
Comment #7
gábor hojtsyI agree with the change in behavior, I don't believe I am qualified to review the implementation itself.
Comment #8
plachAddressed #6.2. I will create a follow-up ASAP.
Comment #9
plachDiscussed this with @catch: we are not comfortable with committing the latest patch at this stage of the 8.5.0 development. We agreed to hide the "Flag as outdated" widget instead.
Comment #10
effulgentsia commentedI committed #2949710: Pending revisions may become unavailable when untranslatable fields affect all translations. #9 has some duplicate hunks from that. Here's a reroll with those removed.
Comment #11
effulgentsia commentedFor #10, I just rebased. The actual work that's in the patch is not mine, but looks great to me. Therefore, RTBC, and removing credit from myself.
Comment #12
gábor hojtsyComment #15
gábor hojtsyAll right, let's plug this hole. Thanks for producing the fix so fast and for the discussions with @catch et al.
Still needs the followup opened.
Comment #16
gábor hojtsyComment #17
plachCreated #2950626: Allow flagging translations as outdated when content is moderated and #2950627: Make it easier for contrib to restore the "Flag as outdated" functionality for moderated content .