]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 16 Jul 2019 06:30:47 +0000 (08:30 +0200)
commit68424ae5adab4b8ab4b4f165b6c9ac72cf2590cc
treea32240bc3e339146ffa941ae50a43eb7320e2eab
parentb6b773c39a52ee92c96e2d10ceed323f55e8b885
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>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt
koha-tmpl/intranet-tmpl/prog/js/marc_modification_templates.js