From 366a9aa740e087c072064fa0ac2bd22e392b94e6 Mon Sep 17 00:00:00 2001 From: Paul Derscheid Date: Fri, 6 Mar 2026 14:16:09 +0100 Subject: [PATCH] Bug 41573: (QA follow-up) Fix missing closing backtick in template literal - The conversion from string concatenation to a template literal in addToList() missed the closing backtick - This causes a syntax error breaking the add-to-list functionality on the patron lists tab Signed-off-by: Paul Derscheid --- .../prog/en/modules/patron_lists/patron-lists-tab.tt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/patron-lists-tab.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/patron-lists-tab.tt index 1f0ce7c3a18..fa9e868c9c5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/patron-lists-tab.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/patron-lists-tab.tt @@ -134,22 +134,22 @@ $("#table_listnopatron").kohaTable(patron_lists_dt_params); $("#table_inlists").kohaTable(patron_lists_dt_params); - if (permissions.CAN_user_tools_manage_patron_lists){ + if (permissions.CAN_user_tools_manage_patron_lists) { function addToList() { var list_id = $("#add_to_patron_list_id_select").val(); - $('#pat_lists_panel').text(_("Loading...")); + $("#pat_lists_panel").text(_("Loading...")); $("body").css("cursor", "progress"); - $('#pat_lists_panel').load(`/cgi-bin/koha/patron_lists/patron-lists-tab.pl?borrowernumber=${patron_id}&patron_list_id=${list_id}&patrons_to_add=${cardnumber}, function() { + $("#pat_lists_panel").load(`/cgi-bin/koha/patron_lists/patron-lists-tab.pl?borrowernumber=${patron_id}&patron_list_id=${list_id}&patrons_to_add=${cardnumber}`, function () { $("body").css("cursor", "default"); }); return false; } - function removeFromList( list_id, patron_list_patron_id ) { - $('#pat_lists_panel').text(_("Loading...")); + function removeFromList(list_id, patron_list_patron_id) { + $("#pat_lists_panel").text(_("Loading...")); $("body").css("cursor", "progress"); - $('#pat_lists_panel').load(`/cgi-bin/koha/patron_lists/patron-lists-tab.pl?borrowernumber=${patron_id}&patron_list_id=${list_id}&patrons_to_remove=${patron_list_patron_id}`, function() { + $("#pat_lists_panel").load(`/cgi-bin/koha/patron_lists/patron-lists-tab.pl?borrowernumber=${patron_id}&patron_list_id=${list_id}&patrons_to_remove=${patron_list_patron_id}`, function () { $("body").css("cursor", "default"); }); -- 2.39.5