From 0d7a33f671e719015c34d10c5573ed652d1e925c Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 2 Jul 2010 14:38:28 -0400 Subject: [PATCH] bug 3916: set another "no change" dropdwon in batch item modification Item type drop-down in the batch item modification tool now has its default value set to the 'no change' value. Signed-off-by: Galen Charlton --- tools/batchMod.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/batchMod.pl b/tools/batchMod.pl index 3580b91443..f5138d1561 100755 --- a/tools/batchMod.pl +++ b/tools/batchMod.pl @@ -284,13 +284,14 @@ foreach my $tag (sort keys %{$tagslib}) { $value = ""; } elsif ( $tagslib->{$tag}->{$subfield}->{authorised_value} eq "itemtypes" ) { - push @authorised_values, "" unless ( $tagslib->{$tag}->{$subfield}->{mandatory} ); + push @authorised_values, ""; my $sth = $dbh->prepare("select itemtype,description from itemtypes order by description"); $sth->execute; while ( my ( $itemtype, $description ) = $sth->fetchrow_array ) { push @authorised_values, $itemtype; $authorised_lib{$itemtype} = $description; } + $value = ""; #---- class_sources } -- 2.20.1