]> git.koha-community.org Git - koha.git/commit
Bug 15814: Handle correctly MMTA edit button
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 30 May 2019 02:28:23 +0000 (21:28 -0500)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 19 Jul 2019 18:40:50 +0000 (18:40 +0000)
commite73a82c8305fb2afa7c94e88a52eba906dd51b4d
tree70ce0079ead6ef863e22b3f71a8cd153a88fb30b
parentcb5767b79de9462946408c92b5791c16ef36674d
Bug 15814: Handle correctly MMTA edit button

The MARC modification template action edit buton does not correctly
handle variable escaping.
Assigning a JS variable containing the JSON representation of the
hashref will make the processing much more easier.

Test plan:
Create a MARC Modification Template with several actions.
In the description you should use the following characters, to try to
break this patch: \ ' " \n \r
(not sure what we handled \n and \r)
Then edit the action, modify and save again.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 7a80483a1358a7bc3e516a8fbc92d34b6559dcac)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 68424ae5adab4b8ab4b4f165b6c9ac72cf2590cc)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt
koha-tmpl/intranet-tmpl/prog/js/marc_modification_templates.js