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 <wizzyrea@gmail.com> Patch works as advertised Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
ccc2fe6d14
commit
8c1c2e81de
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue