Merge pull request #8364 from snipe/fixes/8335_assigned_to_null_on_status_assetlist

Fixed #8335 - added assignedTo scope on status labels API call for assetlist
This commit is contained in:
snipe 2020-08-25 20:38:31 -07:00 committed by GitHub
commit 01a832169c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -209,7 +209,7 @@ 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',