Bug 15814: Add missing filters
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 18 Jun 2019 01:07:29 +0000 (20:07 -0500)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 21 Jun 2019 12:07:40 +0000 (13:07 +0100)
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

index d494318..37477c7 100644 (file)
                                         </td>
                                         <td>[% ActionsLoo.description | html %]</td>
                                         <td>
-                                            <a class="btn btn-default btn-xs edit_action" href="#modaction" data-mmta_id="[% ActionsLoo.mmta_id %]"><i class="fa fa-pencil"></i> Edit</a>
+                                            <a class="btn btn-default btn-xs edit_action" href="#modaction" data-mmta_id="[% ActionsLoo.mmta_id | html %]"><i class="fa fa-pencil"></i> Edit</a>
                                         </td>
                                         <td>
                                             <a class="btn btn-default btn-xs" href="marc_modification_templates.pl?template_id=[% ActionsLoo.template_id | html %]&op=delete_action&mmta_id=[% ActionsLoo.mmta_id | html %]" onclick="return confirmDeleteAction();"><i class="fa fa-trash"></i> Delete</a>
         var MSG_MMT_CONDITIONAL_COMPARISON_REQUIRED = _("The conditional comparison operator should be filled.");
         var MSG_MMT_CONDITIONAL_VALUE_REQUIRED = _("The conditional value should be filled.");
         var MSG_MMT_CONDITIONAL_VALUE_REGEX_REQUIRED = _("The conditional regular expression should be filled.");
-        var mmtas = [% ActionsLoop.json %]
+        var mmtas = [% ActionsLoop.json | $raw %]
     </script>
     [% Asset.js("js/marc_modification_templates.js") | $raw %]
 [% END %]