diff --git a/app/Http/Controllers/Api/AssetsController.php b/app/Http/Controllers/Api/AssetsController.php index a9362188c1..3b37a2875c 100644 --- a/app/Http/Controllers/Api/AssetsController.php +++ b/app/Http/Controllers/Api/AssetsController.php @@ -115,8 +115,8 @@ class AssetsController extends Controller } $assets = Company::scopeCompanyables(Asset::select('assets.*'),"company_id","assets") - ->with('location', 'assetstatus', 'assetlog', 'company', 'defaultLoc','assignedTo', - 'model.category', 'model.manufacturer', 'model.fieldset','supplier'); + ->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. // These are used by the API to query against specific ID numbers.