From 11efb334c20499d1d76289b222350e3b9ae8924b Mon Sep 17 00:00:00 2001 From: Sophie Meynieux Date: Tue, 14 Feb 2012 14:38:25 +0100 Subject: [PATCH] Bug 3916 [follow-up] : Adding a default choice in every dropdown list, not only branches, to let the corresponding value unchanged Signed-off-by: Liz Rea Patch works as advertised Signed-off-by: Paul Poulain --- tools/batchMod.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/batchMod.pl b/tools/batchMod.pl index 94cfa695de..440e516f14 100755 --- a/tools/batchMod.pl +++ b/tools/batchMod.pl @@ -340,12 +340,13 @@ foreach my $tag (sort keys %{$tagslib}) { #---- "true" authorised value } else { - push @authorised_values, "" unless ( $tagslib->{$tag}->{$subfield}->{mandatory} ); + push @authorised_values, ""; # unless ( $tagslib->{$tag}->{$subfield}->{mandatory} ); $authorised_values_sth->execute( $tagslib->{$tag}->{$subfield}->{authorised_value} ); while ( my ( $value, $lib ) = $authorised_values_sth->fetchrow_array ) { push @authorised_values, $value; $authorised_lib{$value} = $lib; } + $value=""; } $subfield_data{marc_value} =CGI::scrolling_list( # FIXME: factor out scrolling_list -name => "field_value", -- 2.39.5