mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-02 08:09:19 +08:00
Fix saving all user prefences in favor of only language
This commit is contained in:
parent
10f198553c
commit
e806a35660
1 changed files with 3 additions and 1 deletions
|
@ -145,12 +145,14 @@ class SetUserLanguage extends LegacyHandler implements ProcessHandlerInterface
|
|||
return;
|
||||
}
|
||||
|
||||
$this->userHandler->setUserPreference('language', $language);
|
||||
$user = $this->userHandler->getCurrentUser();
|
||||
|
||||
$this->init();
|
||||
$user->setPreference('language', $language);
|
||||
$user->savePreferencesToDB();
|
||||
|
||||
$this->close();
|
||||
|
||||
$process->setStatus('success');
|
||||
$process->setMessages([]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue