joomla-cms
joomla-cms copied to clipboard
Changing backend language affects columns display
Steps to reproduce the issue
Go to Users> Manage on backend. Uncheck one or more columns for display on top right dropdown (let's say "Last Visit" and "Registered" - see Capture1) Then, edit the current user you're logged with and change the backend language on "Basic settings" tab. Save and close.
Expected result
The columns you chose to display/hide shoud remain the same.
Actual result
You have a new configuration if the translation of "users" is not the same on the new language. In french it's "utilisateurs" and we have a different configuration set on Local Storage (see Capture2) Not sure if it is expected behaviour.
System information (as much as possible)
Joomla 4.2.8
Captures wasn't uploaded on initial message

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39980.
Intersting finding :) I could not replicate it with German, probably be I missed a step.
Confirmed for users (not articles)
The reason is this line in the js https://github.com/joomla/joomla-cms/blob/1995c41f6f2075f6916b337777888a68de9fefb9/build/media_source/system/js/table-columns.es6.js#L8
As the storing of table column settings is per user I wonder how often this will ever be an issue
This can only be fixed by switching from using the title of the page for the storagekey to a key based on the view see https://github.com/joomla/joomla-cms/pull/45351
Not a bug