From ca5153f6868aa122ef36cd2a028b4ca45d4c57dc 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. Signed-off-by: David Nind --- 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 d83f219dac..817a76c08c 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.39.5