Escape notes in transformCheckedOutAccessory

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2021-11-24 19:54:45 -08:00
parent 4afd598df7
commit 00fad35c2a

View file

@ -82,7 +82,7 @@ class AccessoriesTransformer
'first_name'=> e($user->first_name),
'last_name'=> e($user->last_name),
'employee_number' => e($user->employee_num),
'checkout_notes' => $user->pivot->note,
'checkout_notes' => e($user->pivot->note),
'last_checkout' => Helper::getFormattedDateObject($user->pivot->created_at, 'datetime'),
'type' => 'user',
'available_actions' => ['checkin' => true]