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:
parent
716b418e7e
commit
3dfbe9b4c5
|
|
@ -275,7 +275,7 @@
|
|||
return map;
|
||||
}, {});
|
||||
|
||||
let filters_options = {
|
||||
var filters_options = {
|
||||
libraries,
|
||||
categories,
|
||||
av_bsort1,
|
||||
|
|
|
|||
Loading…
Reference in New Issue