[Koha-bugs] [Bug 26585] New: Cataloguing interface throws JS errors on load

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 30 23:33:26 CEST 2020


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

            Bug ID: 26585
           Summary: Cataloguing interface throws JS errors on load
 Change sponsored?: Sponsored
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: ASSIGNED
          Severity: normal
          Priority: P5 - low
         Component: Browser compatibility
          Assignee: alexbuckley at catalyst.net.nz
          Reporter: alexbuckley at catalyst.net.nz
        QA Contact: testopia at bugs.koha-community.org

Bug 8643 introduced the 'mandatory' default parameter into addbiblio.tt

function AreFieldsNotOk (mandatory = true) {

This works fine in Chrome and Firefox, but Internet Explorer 11 does not allow
default parameters and errors with: Expected ')'

See
https://stackoverflow.com/questions/42768964/proper-way-to-define-default-values-for-function-arguments-in-javascript/42769077

We should not use default parameters which error in IE, and instead set a
default value for mandatory inside the function body.

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


More information about the Koha-bugs mailing list