From 320922a13d1db48b68a508d5ee0d8695ea86d42a Mon Sep 17 00:00:00 2001 From: Timothee Date: Mon, 17 Jun 2024 16:49:33 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B07545=20Correctly=20display=20error=20mes?= =?UTF-8?q?sage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2.x/itop-portal-base/portal/templates/layout.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig b/datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig index 781e7c3fa..ccb0ee2d3 100644 --- a/datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig +++ b/datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig @@ -464,8 +464,8 @@ sBody = '{{ 'Error:XHR:Fail'|dict_format(constant('ITOP_APPLICATION_SHORT'))|escape('js') }}'; } var oModalElem = $('#modal-for-alert'); - oModalElem.find('.modal-content .modal-header .modal-title').html(sTitle); - oModalElem.find('.modal-content .modal-body .alert').addClass('alert-danger').html(sBody); + oModalElem.find('.modal-content .modal-header .modal-title').text(sTitle); + oModalElem.find('.modal-content .modal-body .alert').addClass('alert-danger').text(sBody); oModalElem.modal('show'); }; {% endblock %}