Merge pull request #10416 from uberbrady/yank_assetlogs_from_asset_api

Yank assetlog from eager-load clause in API query for develop
This commit is contained in:
snipe 2021-12-10 19:09:55 -08:00 committed by GitHub
commit 503c802d70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,8 +114,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's tempting to add assetlogs here, but don't - it blows up update-heavy installations
// These are used by the API to query against specific ID numbers.
// They are also used by the individual searches on detail pages like