Skip to content

Commit f623d05

Browse files
committed
Escape checkout target name
Signed-off-by: snipe <[email protected]>
1 parent ef7f21e commit f623d05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Transformers/DepreciationReportTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function transformAsset(Asset $asset)
9898
'purchase_cost' => Helper::formatCurrencyOutput($asset->purchase_cost),
9999
'book_value' => Helper::formatCurrencyOutput($depreciated_value),
100100
'monthly_depreciation' => $monthly_depreciation,
101-
'checked_out_to' => $checkout_target,
101+
'checked_out_to' => ($checkout_target) ? e($checkout_target) : null,
102102
'diff' => Helper::formatCurrencyOutput($diff),
103103
'number_of_months' => ($asset->model && $asset->model->depreciation) ? e($asset->model->depreciation->months) : null,
104104
'depreciation' => (($asset->model) && ($asset->model->depreciation)) ? e($asset->model->depreciation->name) : null,

0 commit comments

Comments
 (0)