From 93dd27339b75a92879abb9cae497a5870de50163 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 22 Dec 2016 21:08:43 -0800 Subject: [PATCH] Fixed missing with clause --- app/Http/Controllers/StatuslabelsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/StatuslabelsController.php b/app/Http/Controllers/StatuslabelsController.php index 5f952bb82..e9ecc2d8c 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=[];