From 2faa45e6b01e0aa19542fffc3f6dc0f7c9702f4d Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 23 Sep 2024 15:00:30 +0200 Subject: [PATCH] escape translation string to avoid JS error (in French) --- admin/themes/default/template/picture_modify.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/themes/default/template/picture_modify.tpl b/admin/themes/default/template/picture_modify.tpl index 0cf1b7bcb..7012481ca 100644 --- a/admin/themes/default/template/picture_modify.tpl +++ b/admin/themes/default/template/picture_modify.tpl @@ -86,7 +86,7 @@ $('#action-delete-picture').on('click', function() { {/literal} }()); -const str_assoc_album_ab = '{'Associate to album'|@translate}'; +const str_assoc_album_ab = '{'Associate to album'|translate|escape:javascript}'; {/footer_script} {combine_script id='picture_modify' load='footer' path='admin/themes/default/js/picture_modify.js'}