mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-01 08:00:47 +08:00
[Legacy] Fix Show Fullnames as admin aspect
This commit is contained in:
parent
e32540739c
commit
62228c57d7
1 changed files with 0 additions and 3 deletions
|
@ -1131,13 +1131,10 @@ function showFullName()
|
|||
static $showFullName = null;
|
||||
|
||||
if (is_null($showFullName)) {
|
||||
$sysPref = !empty($sugar_config['use_real_names']);
|
||||
$userPref = (is_object($current_user)) ? $current_user->getPreference('use_real_names') : null;
|
||||
|
||||
if ($userPref != null && $userPref !== 'off') {
|
||||
$showFullName = ($userPref == 'on');
|
||||
} else {
|
||||
$showFullName = $sysPref;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue