Merged in feature/HOR-3089 (pull request #5660)

HOR-3089

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
Paula Quispe
2017-05-11 13:18:43 +00:00
committed by Julio Cesar Laura Avendaño
2 changed files with 13 additions and 2 deletions

View File

@@ -195,6 +195,16 @@ class Users extends BaseUsers
$translation = $translations->loadByCode($aFields['USR_DEFAULT_LANG']);
$aFields['USR_DEFAULT_LANG_NAME'] = $translation['LANGUAGE_NAME'];
//Get the fullName with the correct format related to the settings
$conf = new \Configurations();
$confEnvSetting = $conf->getFormats();
$aFields['USR_FULLNAME'] = $conf->usersNameFormatBySetParameters(
$confEnvSetting['format'],
$aFields['USR_USERNAME'],
$aFields['USR_FIRSTNAME'],
$aFields['USR_LASTNAME']
);
$result = $aFields;
return $result;