A free open source IT asset/license management system
Load companies to avoid n+1
snipee9e9dfeeab51
diff --git a/app/Http/Controllers/ViewAssetsController.php b/app/Http/Controllers/ViewAssetsController.phpindex c956bed5a7..13ef76ab5a 100755--- a/app/Http/Controllers/ViewAssetsController.php+++ b/app/Http/Controllers/ViewAssetsController.php@@ -120,6 +120,7 @@ class ViewAssetsController extends Controller'consumables','accessories','licenses',+ 'companies',])->find($selectedUserId);// If the user to view couldn't be found (shouldn't happen with proper logic), redirect with error