From 82cca7f4a7560b160336cce2610481098ca52c18 Mon Sep 17 00:00:00 2001 From: Matthias Schuhmayer <38959016+mattamon@users.noreply.github.com> Date: Thu, 9 Mar 2023 10:21:39 +0100 Subject: [PATCH] [Task] Improve webtoprint pdf (#14560) * Improve webtoprint pdf * Use different method --- .../js/pimcore/document/printpages/pdf_preview.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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); }