diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc
index 52f2c8faf0..26e1f348a3 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc
@@ -152,7 +152,7 @@
[% IF add_delete_checkbox %]
[% UNLESS ( subfield.mandatory ) %]
-
+
[% ELSE %]
Required
[% END %]
diff --git a/tools/batchMod.pl b/tools/batchMod.pl
index e5ba87cfbb..81745c3e6f 100755
--- a/tools/batchMod.pl
+++ b/tools/batchMod.pl
@@ -138,8 +138,7 @@ if ( $op eq "action" ) {
. encode_utf8($attr)
; # We need to deal correctly with encoding on subfield codes
- if ( grep { $attr eq $_ } @subfields_to_blank ) {
-
+ if ( grep { $cgi_var_name eq $_ } @subfields_to_blank ) {
# Empty this column
$new_item_data->{$attr} = undef;
}