From 7588c336edb24050656111b89d69e69cc9feb5f5 Mon Sep 17 00:00:00 2001 From: Martin Eiber Date: Tue, 14 Mar 2023 08:11:23 +0100 Subject: [PATCH] improve Document Types. --- .../Resources/public/js/pimcore/settings/docTypes.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bundles/AdminBundle/Resources/public/js/pimcore/settings/docTypes.js b/bundles/AdminBundle/Resources/public/js/pimcore/settings/docTypes.js index b57353f933e..19c8d96b68c 100644 --- a/bundles/AdminBundle/Resources/public/js/pimcore/settings/docTypes.js +++ b/bundles/AdminBundle/Resources/public/js/pimcore/settings/docTypes.js @@ -228,8 +228,10 @@ pimcore.settings.document.doctypes = Class.create({ tooltip: t('delete'), handler: function (grid, rowIndex) { let data = grid.getStore().getAt(rowIndex); - pimcore.helpers.deleteConfirm(t('document_type'), data.data.name, function () { - grid.getStore().removeAt(rowIndex); + pimcore.helpers.deleteConfirm(t('document_type'), + Ext.util.Format.htmlEncode(data.data.name), + function () { + grid.getStore().removeAt(rowIndex); }.bind(this)); }.bind(this) }]