Merge branch 'hotfixes/add_username_to_csv_export' into develop

This commit is contained in:
snipe 2016-10-25 02:51:27 -07:00
commit 85f3cc1762

View file

@ -1301,10 +1301,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'),
@ -1331,9 +1332,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 : '',