- 🇪🇸Spain vidorado Pamplona (Navarra)
#7 Solved my problem. The latest revision was not being picked in a multi-language scenario, and now it is, correctly in all languages the entity is translated into.
When a revision is scheduled, editors can have the latest draft copied back to the top of the revisions. For multilingual content, sometimes the default revision is copied to the top when the latest draft is scheduled.
Steps to reproduce:
When debugging this, the problem seems to be the way the latest revision ID is determined in ScheduledTransitionsRunner::runTransition()
. Instead of getLatestRevisionId()
we should use getLatestTranslationAffectedRevisionId()
for multilingual content.
Write patch
Review
Commit
Needs work
2.3
Code
The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
#7 Solved my problem. The latest revision was not being picked in a multi-language scenario, and now it is, correctly in all languages the entity is translated into.