Merge pull request #10426 from snipe/fixes/added_escape_to_asset_api_assigned_to

Added escape to assigned_to API response
This commit is contained in:
snipe 2021-12-13 12:06:08 -08:00 committed by GitHub
commit c988d84271
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -170,7 +170,7 @@ class AssetsTransformer
}
return $asset->assigned ? [
'id' => $asset->assigned->id,
'name' => $asset->assigned->display_name,
'name' => e($asset->assigned->display_name),
'type' => $asset->assignedType()
] : null;
}