Fixed #11706: changes the display of managers username to First Last name

This commit is contained in:
Warren White 2022-08-19 10:17:25 -07:00
parent 4b9a91f55b
commit ba7d6dde3f

View file

@ -33,7 +33,7 @@ class UsersTransformer
'employee_num' => e($user->employee_num),
'manager' => ($user->manager) ? [
'id' => (int) $user->manager->id,
'name'=> e($user->manager->username),
'name'=> e($user->manager->first_name).' '.e($user->manager->last_name),
] : null,
'jobtitle' => ($user->jobtitle) ? e($user->jobtitle) : null,
'phone' => ($user->phone) ? e($user->phone) : null,