]> git.koha-community.org Git - koha.git/commit
Bug 28423: JavaScript error on MARC modifications page
authorOwen Leonard <oleonard@myacpl.org>
Fri, 21 May 2021 17:11:09 +0000 (17:11 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Sat, 10 Jul 2021 03:19:03 +0000 (17:19 -1000)
commitf4824b5a27e32fdf126febc542b1af8727448474
tree3377ec9ddf4fe8238cb0a314ea15e72bdde7c931
parent4af1c44c22331904e2b465ba5dec8c5977af6933
Bug 28423: JavaScript error on MARC modifications page

This patch makes a minor change to the MARC modifications template so
that the "mmtas" variable isn't defined if there is no JSON to be
assigned as its value.

To test, apply the patch and go to Administration -> MARC modification
templates.

 - If necessary, add a template with at least one action.
 - Check the browser console, there should be no errors.
 - Click the "Edit" button corresponding to one of the template actions.
 - The details of the action should load correctly in the edit form and
   there should be no errors in the console.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 2454b2f58a99b59a51849aa9edbf6295bfa0c31b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt