[Bug 43369] New: JS error when opacuserlogin is turned off
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43369 Bug ID: 43369 Summary: JS error when opacuserlogin is turned off Initiative type: --- Sponsorship --- status: Product: Koha Version: 24.11 Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: katrin.fischer@bsz-bw.de QA Contact: testopia@bugs.koha-community.org Target Milestone: --- When opacuserlogin is turned off, there is a JS error in the console stemming from the OpenIDConnect code, because has-search-query doesn't exist. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43369 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tomascohen@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43369 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|24.11 |Main --- Comment #1 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Confirmed in main: - Switch opacuserlogin (no login in OPAC allowed) - Do a search in OPAC - Check developer tools: Uncaught TypeError: can't access property "value", query is null <anonymous> http://localhost:8080/opac-tmpl/bootstrap/js/authtoresults_26.0600053.js:8 Pointing here: if (window.location.href.indexOf("opac-search.pl") > -1) { // extract search params var searchUrl = location.href; var searchParams = searchUrl.substring(searchUrl.indexOf("?") + 1); // store search params in loginModal to pass back on redirect var query = document.getElementById("has-search-query"); query.value = searchParams; } -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org