Each time the user logs in, their preference settings are reset. #580
Labels
Area: Users
Issues & PRs relating to User Module Functionality as well as the User Module itself.
Priority:Important
Issues & PRs that are important; broken functions; errors; there are workarounds
Severity: Major
Significant impact/severe disruption
Type: Bug
Something isn't working
Issue
note
This issue occurs when the language pack is installed due to the save() method on line 155 in the file core/backend/UserPreferences/LegacyHandler/SetUserLanguage.php.
Each time a user logs in, the system executes a function called saveFormPreferences, located in the file public/legacy/modules/Users/User.php. This function expects the $_POST variable to contain certain user preference settings. However, the $_POST variable arrives empty, causing all user preferences to reset to hard coded values upon every login.
The affected preferences include, but are not limited to:
mailmerge_on
user_swap_last_viewed
user_swap_shortcuts
use_group_tabs
sort_modules_by_name
user_subpanel_tabs
user_count_collapsed_subpanels
user_module_favicon
no_opps
timezone
ut
use_real_names
mail_smtpauth_req
mail_smtpssl
gsync_ca
This issue is critical as each login erases important user configurations, such as their customized timezone. This can significantly impact.
Possible Fix
No response
Steps to Reproduce the Issue
Context
No response
Version
8.7.1
What browser are you currently using?
Chrome
Browser Version
No response
Environment Information
PHP 8.1.30
Operating System and Version
Ubuntu 22.04.4 LTS
The text was updated successfully, but these errors were encountered: