https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42292

--- Comment #43 from Jonathan Druart <[email protected]> ---
Created attachment 200962
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=200962&action=edit
Bug 42292: (QA follow-up) Fix evaluation of OpacHighlightedWords to be numeric
in opac-results

OpacHighlightedWords was set in quotation marks and resulted in either "1" or
"0".
As "0" and "1" always evaluates to true in JS the following error was thrown
when OpacHighlightedWords was set to Don't highlight: Uncaught TypeError:
$(...).highlight is not a function

To test:
a) Set system preference OpacHighlightedWords to Don't highlight
b) search a title in the opac with open dev console and check that no error
(like above) is thrown.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to