From 63f8c65b36a0bd59b2d85900ca812d6ecbdb67fa Mon Sep 17 00:00:00 2001 From: David Cook Date: Fri, 24 Apr 2026 03:04:21 +0000 Subject: [PATCH] Bug 42463: Use text instead of HTML for confirm message This change uses the text instad of the HTML for the delete SMS provider confirm message. Test plan: 0. Apply the patch 1. Go to Administration, click System preferences, search for SMSSendDriver 2. Set SMSSendDriver to "Email" 3. Go to administration 4. Click on "SMS cellular providers" 5. Click "New SMS provider" 6. For "Name" and "Domain" write: This & That 7. Click Submit 8. Click "Delete" for the new provider 9. Note that the message says "Are you sure you want to delete This & That?" 10. Click "OK" Signed-off-by: David Nind Signed-off-by: Baptiste Wojtkowski Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/js/sms_providers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/sms_providers.js b/koha-tmpl/intranet-tmpl/prog/js/sms_providers.js index 76cb25e787..ea05d20ebc 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/sms_providers.js +++ b/koha-tmpl/intranet-tmpl/prog/js/sms_providers.js @@ -66,12 +66,12 @@ function delete_provider(id, users) { c = confirm( __( "Are you sure you want to delete %s? %s patron(s) are using it!" - ).format($("#name_" + id).html(), users) + ).format($("#name_" + id).text(), users) ); } else { c = confirm( __("Are you sure you want to delete %s?").format( - $("#name_" + id).html() + $("#name_" + id).text() ) ); }