From 4c9eadb1fa5a20a07ffa16194aa57b9fb34f25a8 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 11 Oct 2021 15:46:05 +0200 Subject: [PATCH] Bug 28445: Fix subfields to blank The value of the checkbox was not correct --- koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc | 2 +- tools/batchMod.pl | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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 52f2c8faf0d..26e1f348a37 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 e5ba87cfbb8..81745c3e6f3 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; } -- 2.25.1