mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-11 16:14:18 -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);
|
||||
|
||||
|
||||
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')) {
|
||||
$users = $users->where('users.activated', '=', $request->input('activated'));
|
||||
}
|
||||
|
@ -272,6 +266,12 @@ class UsersController extends Controller
|
|||
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();
|
||||
$users = $users->skip($offset)->take($limit)->get();
|
||||
|
||||
|
|
|
@ -45,4 +45,5 @@ return [
|
|||
'alert_details' => 'Please see below for details.',
|
||||
'custom_export' => 'Custom Export',
|
||||
'mfg_warranty_lookup' => ':manufacturer Warranty Status Lookup',
|
||||
'user_department' => 'User Department',
|
||||
];
|
||||
|
|
|
@ -919,6 +919,10 @@
|
|||
</li>
|
||||
@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))
|
||||
<li>{{ $asset->location->name }}</li>
|
||||
<li>{{ $asset->location->address }}
|
||||
|
|
Loading…
Reference in a new issue