Fixed
Project:
Drupal core
Version:
main
Component:
locale.module
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jul 2026 at 13:47 UTC
Updated:
7 Jul 2026 at 20:55 UTC
Jump to comment: Most recent
The BC layer in locale_translation_get_projects() is implemented incorrectly - an empty array should return all projects.
Call locale_translation_get_projects() on 11.3.x and on 11.4.x and see the difference.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
nicxvan commentedComment #5
alexpottYep this is exactly what we need to do. Imo because we have logic we should have a test.
Comment #6
alexpottI've added tests
Comment #7
nicxvan commentedTest looks good, I can't run test only changes against core committer pipelines so I manually pulled this in and ran the test with and without the changes and confirmed it fails when the fix is missing.
I think I'm ok to mark it here since 5 was a review of my code and I'm reviewing just the tests.
Comment #11
catchCommitted/pushed to main, 11.x and 11.4.x, thanks!