Merge pull request #11824 from snipe/fixes/removed_assetlog_from_custom_report

Fixed custom asset report timeout - removed assetlog
This commit is contained in:
snipe 2022-09-14 18:20:14 -07:00 committed by GitHub
commit 3877770160
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -589,7 +589,7 @@ class ReportsController extends Controller
\Log::debug('Added headers: '.$executionTime);
$assets = \App\Models\Company::scopeCompanyables(Asset::select('assets.*'))->with(
'location', 'assetstatus', 'assetlog', 'company', 'defaultLoc', 'assignedTo',
'location', 'assetstatus', 'company', 'defaultLoc', 'assignedTo',
'model.category', 'model.manufacturer', 'supplier');
if ($request->filled('by_location_id')) {