Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Each time the user logs in, their preference settings are reset. #580

Open
desarrollador20 opened this issue Dec 12, 2024 · 0 comments
Open
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

Comments

@desarrollador20
Copy link

desarrollador20 commented Dec 12, 2024

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

1)Install any language pack 
2.Create a user and configure some of the mentioned properties, for example, the time zone, different from the default which is: UTC (GMT+0:00).
3.Login with that user 
4.Go to view time zone

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

@desarrollador20 desarrollador20 added the Type: Bug Something isn't working label Dec 12, 2024
@johnM2401 johnM2401 added Priority:Important Issues & PRs that are important; broken functions; errors; there are workarounds Area: Users Issues & PRs relating to User Module Functionality as well as the User Module itself. Severity: Major Significant impact/severe disruption labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants