From 7137ee91e0a9c5278d15c116612c62d2c2bd1926 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 18 Dec 2013 12:18:52 +0100 Subject: [PATCH] Bug 11414: warn user about dangerous MARC modification rules Test plan: On the MARC modification tool: Add/edit a new action on a field and define a condition on the same field. Verify that you get a warning message in red. See bug 11413 for more information Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer Passes all tests and QA script. Tested adding and editing a template with the same field in the action and the condition. Signed-off-by: Galen Charlton --- .../modules/tools/marc_modification_templates.tt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt index 569b7f8919..871fa772e4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt @@ -11,11 +11,26 @@ $(document).ready(function() { }); $("span.match_regex_prefix" ).hide(); $("span.match_regex_suffix" ).hide(); + + $("#conditional_field,#from_field").change(function(){ + updateWarnings(); // For 3.14.x branches only, if bug 11319 is not pushed into + }); }); //]]>