[Koha-bugs] [Bug 18305] New: Invalid JS breaks advanced marc editor

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 20 15:08:25 CET 2017


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

            Bug ID: 18305
           Summary: Invalid JS breaks advanced marc editor
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Cataloging
          Assignee: gmcharlt at gmail.com
          Reporter: glasklas at gmail.com
        QA Contact: testopia at bugs.koha-community.org
                CC: m.de.rooy at rijksmuseum.nl

Get the following errors editing a bibliographic record:

"Uncaught SyntaxError: Unexpected token ="

and

"addbiblio.pl:294 Uncaught TypeError: $(...).fixFloat is not a function"

which breaks the advanced MARC editor (and potentially other things as well).

This is caused by the following line in
koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js:

"$.fn.fixFloat = function (options={}) {"

I'm running Chromium 47 which does not support parameter defaults (added in
49). Internet Explorer (besides edge) and Opera has no support. Since
everything seems to work fine when fixing this it seems a shame to let this
minor snippet screw up support for so many browser versions.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list