Skip to content

Commit

Permalink
Merge pull request #8364 from snipe/fixes/8335_assigned_to_null_on_st…
Browse files Browse the repository at this point in the history
…atus_assetlist

Fixed #8335 - added assignedTo scope on status labels API call for assetlist
  • Loading branch information
snipe authored Aug 26, 2020
2 parents bcad49c + 3c68834 commit 01a8321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/StatuslabelsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public function assets(Request $request, $id)
{
$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',
Expand Down

0 comments on commit 01a8321

Please sign in to comment.