diff --git a/bundles/AdminBundle/Resources/public/js/pimcore/document/printpages/pdf_preview.js b/bundles/AdminBundle/Resources/public/js/pimcore/document/printpages/pdf_preview.js index e1c64a03ae7..00f522fa3a7 100644 --- a/bundles/AdminBundle/Resources/public/js/pimcore/document/printpages/pdf_preview.js +++ b/bundles/AdminBundle/Resources/public/js/pimcore/document/printpages/pdf_preview.js @@ -264,15 +264,15 @@ pimcore.document.printpages.pdfpreview = Class.create({ var data = record.data; var type = data.type; - if (type == "bool") { - if (value) { - return '
'; - } else { - return '
'; - } + if (type === "text") { + return Ext.util.Format.htmlEncode(value); + } + + if (type === "bool") { + return '
'; } - if (type == "select") { + if (type === "select") { return t("web2print_" + value, value); }