From b3075a3594fbc1783a98de08b4395da3bedceb6c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 18 Dec 2013 12:18:52 +0100 Subject: [PATCH] [PASSED QA] Bug 11414: Marc modification template limitations should alert the user 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. --- .../prog/en/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 569b7f8..871fa77 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 + }); }); //]]>