mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-06 11:27:32 -08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
db8c37cd5b
|
@ -78,12 +78,6 @@ class UsersController extends Controller
|
||||||
$users = Company::scopeCompanyables($users);
|
$users = Company::scopeCompanyables($users);
|
||||||
|
|
||||||
|
|
||||||
if (($request->filled('deleted')) && ($request->input('deleted') == 'true')) {
|
|
||||||
$users = $users->onlyTrashed();
|
|
||||||
} elseif (($request->filled('all')) && ($request->input('all') == 'true')) {
|
|
||||||
$users = $users->withTrashed();
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($request->filled('activated')) {
|
if ($request->filled('activated')) {
|
||||||
$users = $users->where('users.activated', '=', $request->input('activated'));
|
$users = $users->where('users.activated', '=', $request->input('activated'));
|
||||||
}
|
}
|
||||||
|
@ -272,6 +266,12 @@ class UsersController extends Controller
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (($request->filled('deleted')) && ($request->input('deleted') == 'true')) {
|
||||||
|
$users = $users->onlyTrashed();
|
||||||
|
} elseif (($request->filled('all')) && ($request->input('all') == 'true')) {
|
||||||
|
$users = $users->withTrashed();
|
||||||
|
}
|
||||||
|
|
||||||
$total = $users->count();
|
$total = $users->count();
|
||||||
$users = $users->skip($offset)->take($limit)->get();
|
$users = $users->skip($offset)->take($limit)->get();
|
||||||
|
|
||||||
|
|
|
@ -45,4 +45,5 @@ return [
|
||||||
'alert_details' => 'Please see below for details.',
|
'alert_details' => 'Please see below for details.',
|
||||||
'custom_export' => 'Custom Export',
|
'custom_export' => 'Custom Export',
|
||||||
'mfg_warranty_lookup' => ':manufacturer Warranty Status Lookup',
|
'mfg_warranty_lookup' => ':manufacturer Warranty Status Lookup',
|
||||||
|
'user_department' => 'User Department',
|
||||||
];
|
];
|
||||||
|
|
|
@ -919,6 +919,10 @@
|
||||||
</li>
|
</li>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
@if((isset($asset->assignedTo)) && ($asset->assignedTo->department))
|
||||||
|
<li>{{ trans('admin/hardware/general.user_department') }}: {{ $asset->assignedTo->department->name}}</li>
|
||||||
|
@endif
|
||||||
|
|
||||||
@if (isset($asset->location))
|
@if (isset($asset->location))
|
||||||
<li>{{ $asset->location->name }}</li>
|
<li>{{ $asset->location->name }}</li>
|
||||||
<li>{{ $asset->location->address }}
|
<li>{{ $asset->location->address }}
|
||||||
|
|
Loading…
Reference in a new issue