mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Add explicit select back to query
This commit is contained in:
parent
a8133f62e8
commit
8aae5beaba
|
@ -44,7 +44,8 @@ class ComponentsController extends Controller
|
||||||
'notes',
|
'notes',
|
||||||
];
|
];
|
||||||
|
|
||||||
$components = Component::with('company', 'location', 'category', 'assets', 'supplier');
|
$components = Component::select('components.*')
|
||||||
|
->with('company', 'location', 'category', 'assets', 'supplier');
|
||||||
|
|
||||||
if ($request->filled('search')) {
|
if ($request->filled('search')) {
|
||||||
$components = $components->TextSearch($request->input('search'));
|
$components = $components->TextSearch($request->input('search'));
|
||||||
|
|
Loading…
Reference in a new issue