diff --git a/tpl/Reservation/pdf.tpl b/tpl/Reservation/pdf.tpl index 7e7684c95..4d051c96a 100644 --- a/tpl/Reservation/pdf.tpl +++ b/tpl/Reservation/pdf.tpl @@ -146,7 +146,7 @@ $('.btnPDF').click(function (e) { ], {foreach from=$AvailableResources item=resource} {if is_array($AdditionalResourceIds) && in_array($resource->Id, $AdditionalResourceIds)} - [{ content: '{$resource->Name}'}, + [{ content: '{$resource->Name|escape:'javascript'}'}, { content: '{if $resource->GetRequiresApproval()}X{/if}', styles: { fontStyle: 'bold', halign: 'center'}}, { content: '{if $resource->IsCheckInEnabled()}X{/if}', styles: { fontStyle: 'bold', halign: 'center'}}, { content: '{if $resource->IsAutoReleased()}{$resource->GetAutoReleaseMinutes()}{else} - {/if}', styles: { halign: 'center'}},