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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

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.
_______________________________________________
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