Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
entity system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Oct 2015 at 15:42 UTC
Updated:
20 Oct 2015 at 21:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
vijaycs85Comment #4
mkalkbrennerI just checked locally that the test case succeeds with
4a992013d875942451c89b3692490730bc435c7fbut fails with5c0eb9b7a5021c429f751ed378af9da9eaf9b983.Comment #5
mkalkbrennerI don't think that #2090983: ContentEntityInterface::getTranslation() should throw an exception when an invalid language is specified introduced the issue but simply uncovered the real one.
@plach: I'm not sure yet, but it seems that entity storage iterates over the translations of the latest revision instead of the translations of the revision that is saved.
Comment #6
plachOn this
Comment #7
plachThis should be it
Comment #8
chx commentedThat looks sensible: the translation we delete must come from the original , it is not on the current one because it is deleted (doh!)
Comment #9
plachExactly, thanks!
Comment #10
alexpottWe have tests and the fix makes sense. Committed 3884a58 and pushed to 8.0.x. Thanks!
Comment #13
gábor hojtsyWoot, thanks folks!