Remove scopeCompanyables call from AssetsController@index

This commit is contained in:
Marcus Moore 2023-06-21 16:29:44 -07:00
parent af77fefc61
commit fd55c99b87
No known key found for this signature in database

View file

@ -115,7 +115,7 @@ class AssetsController extends Controller
$allowed_columns[] = $field->db_column_name();
}
$assets = Company::scopeCompanyables(Asset::select('assets.*'), 'company_id', 'assets')
$assets = Asset::select('assets.*')
->with('location', 'assetstatus', 'company', 'defaultLoc','assignedTo',
'model.category', 'model.manufacturer', 'model.fieldset','supplier'); //it might be tempting to add 'assetlog' here, but don't. It blows up update-heavy users.