Fixed (develop) #4568 - escaping values in custom report

This commit is contained in:
snipe 2018-12-12 19:40:15 -08:00
parent 71f2440ddf
commit 67f6df2be3

View file

@ -612,8 +612,8 @@ class ReportsController extends Controller
if ($request->filled('assigned_to')) { if ($request->filled('assigned_to')) {
$row[] = ($asset->checkedOutToUser() && $asset->assigned) ? e($asset->assigned->getFullNameAttribute()) : ($asset->assigned ? e($asset->assigned->display_name) : ''); $row[] = ($asset->checkedOutToUser() && $asset->assigned) ? $asset->assigned->getFullNameAttribute() : ($asset->assigned ? $asset->assigned->display_name : '');
$row[] = ($asset->checkedOutToUser() && $asset->assigned) ? 'user' : e($asset->assignedType()); $row[] = ($asset->checkedOutToUser() && $asset->assigned) ? 'user' : $asset->assignedType();
} }
if ($request->filled('username')) { if ($request->filled('username')) {