@@ -, +, @@ --- .../modules/tools/marc_modification_templates.tt | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt @@ -23,13 +23,13 @@ $(document).ready(function() { alert(_("The destination should be filled.")); return false; } - if ( ( $("#to_field").val() <= 10 && $("#to_subfield").val().length > 0 ) || - ( $("#from_field").val() <= 10 && $("#from_subfield").val().length > 0 ) ) { + if ( ( $("#to_field").val() < 10 && $("#to_subfield").val().length > 0 ) || + ( $("#from_field").val() < 10 && $("#from_subfield").val().length > 0 ) ) { alert(_("If the field is a control field, the subfield should be empty")); return false; } - if ( ( $("#from_field").val() <= 10 && $("#to_subfield").val().length == 0 ) || - ( $("#to_field").val() <= 10 && $("#from_subfield").val().length == 0 ) ) { + if ( ( $("#from_field").val() < 10 && $("#to_subfield").val().length == 0 ) || + ( $("#to_field").val() < 10 && $("#from_subfield").val().length == 0 ) ) { alert(_("A control field cannot be used with a regular field.")); return false; } --