Added escape to assigned_to API response

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2021-12-13 12:03:03 -08:00
parent 3a7cef15bd
commit 9d5d1a9f9a

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;
}