diff --git a/app/Http/Controllers/Api/StatuslabelsController.php b/app/Http/Controllers/Api/StatuslabelsController.php index 4d5f9d0167..6a7aa33d4b 100644 --- a/app/Http/Controllers/Api/StatuslabelsController.php +++ b/app/Http/Controllers/Api/StatuslabelsController.php @@ -204,11 +204,11 @@ class StatuslabelsController extends Controller { $this->authorize('view', Statuslabel::class); $this->authorize('index', Asset::class); - $assets = Asset::where('status_id','=',$id); + $assets = Asset::where('status_id','=',$id)->with('assignedTo'); $allowed_columns = [ 'id', - 'name' + 'name', ]; $offset = request('offset', 0);