]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 21 Jun 2019 12:07:32 +0000 (13:07 +0100)
commit7a80483a1358a7bc3e516a8fbc92d34b6559dcac
tree14c53187c0ed999a4d9afd76fe9a86d68e4c3a0d
parent6dc8306b58bc1207f396d2df919a3daf4712e8e5
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>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt
koha-tmpl/intranet-tmpl/prog/js/marc_modification_templates.js