Fixed #6284 - missing checkout information on Status Labels API assets endpoint

This commit is contained in:
snipe 2018-10-03 10:30:10 -07:00
parent 4a88e155c4
commit 84848fabd7

View file

@ -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);