mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Added username, fixed duplicate company name
This commit is contained in:
parent
30f0f6f527
commit
1793461642
|
@ -1285,10 +1285,11 @@ class UsersController extends Controller
|
||||||
$headers=[
|
$headers=[
|
||||||
// strtolower to prevent Excel from trying to open it as a SYLK file
|
// strtolower to prevent Excel from trying to open it as a SYLK file
|
||||||
strtolower(trans('general.id')),
|
strtolower(trans('general.id')),
|
||||||
trans('general.company'),
|
|
||||||
trans('admin/companies/table.title'),
|
trans('admin/companies/table.title'),
|
||||||
|
trans('admin/users/table.title'),
|
||||||
trans('admin/users/table.employee_num'),
|
trans('admin/users/table.employee_num'),
|
||||||
trans('admin/users/table.name'),
|
trans('admin/users/table.name'),
|
||||||
|
trans('admin/users/table.username'),
|
||||||
trans('admin/users/table.email'),
|
trans('admin/users/table.email'),
|
||||||
trans('admin/users/table.manager'),
|
trans('admin/users/table.manager'),
|
||||||
trans('admin/users/table.location'),
|
trans('admin/users/table.location'),
|
||||||
|
@ -1315,9 +1316,10 @@ class UsersController extends Controller
|
||||||
$values = [
|
$values = [
|
||||||
$user->id,
|
$user->id,
|
||||||
($user->company) ? $user->company->name : '',
|
($user->company) ? $user->company->name : '',
|
||||||
$user->title,
|
$user->jobtitle,
|
||||||
$user->employee_num,
|
$user->employee_num,
|
||||||
$user->fullName(),
|
$user->fullName(),
|
||||||
|
$user->username,
|
||||||
$user->email,
|
$user->email,
|
||||||
($user->manager) ? $user->manager->fullName() : '',
|
($user->manager) ? $user->manager->fullName() : '',
|
||||||
($user->location) ? $user->location->name : '',
|
($user->location) ? $user->location->name : '',
|
||||||
|
|
Loading…
Reference in a new issue