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 <david@davidnind.com>
Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 9e7401ea1b)
Signed-off-by: Jacob O'Mara <jacob.omara@openfifth.co.uk>
This commit is contained in:
Jonathan Druart 2026-01-08 15:06:56 +01:00 committed by Jacob O'Mara
parent 716b418e7e
commit 3dfbe9b4c5
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@
return map;
}, {});
let filters_options = {
var filters_options = {
libraries,
categories,
av_bsort1,