From 7905bc04f40565557100c21f85f42400dbdc9e2a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 8 Jan 2026 15:06:56 +0100 Subject: [PATCH] Bug 41545: Remove JS warning "redeclaration of let filters_options" On the suggestions page more than one patron search is injected into the page that leads to JS warnings when the JS variable is defined with "let". We should use "var" in this case. Test plan: /cgi-bin/koha/suggestion/suggestion.pl?op=add_form&branchcode=CPL And notice that the warning does no longer appear when this patch is applied. --- koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc index d83f219dac0..817a76c08c8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -275,7 +275,7 @@ return map; }, {}); - let filters_options = { + var filters_options = { libraries, categories, av_bsort1, -- 2.43.0