Skip to content

A free open source IT asset/license management system

Fixed missing with clause

snipe93dd27339b75
diff --git a/app/Http/Controllers/StatuslabelsController.php b/app/Http/Controllers/StatuslabelsController.php
index 5f952bb827..e9ecc2d8c8 100755
--- a/app/Http/Controllers/StatuslabelsController.php
+++ b/app/Http/Controllers/StatuslabelsController.php
@@ -46,7 +46,7 @@ class StatuslabelsController extends Controller
public function getAssetCountByStatuslabel()
{
- $statusLabels = Statuslabel::with()->get();
+ $statusLabels = Statuslabel::with('assets')->get();
$labels=[];
$points=[];
$colors=[];