[Koha-bugs] [Bug 28423] New: JavaScript error on MARC modifications page

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 21 19:01:38 CEST 2021


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

            Bug ID: 28423
           Summary: JavaScript error on MARC modifications page
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
               URL: /cgi-bin/koha/tools/marc_modification_templates.pl
                OS: All
            Status: ASSIGNED
          Severity: minor
          Priority: P5 - low
         Component: Templates
          Assignee: oleonard at myacpl.org
          Reporter: oleonard at myacpl.org
        QA Contact: testopia at bugs.koha-community.org

This line in the MARC modification template is problematic because if
"ActionsLoop" doesn't exist it creates a JS error.

var mmtas = [% ActionsLoop.json | $raw %]

Normally the solution would be to wrap the variable in quotes:

var mmtas = "[% ActionsLoop.json | $raw %]";

...but that causes an error if ActionsLoop *is* defined.

We need some logic for determining how the script is generated.

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


More information about the Koha-bugs mailing list