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@myacpl.org Reporter: oleonard@myacpl.org QA Contact: testopia@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.