Bug 3727: Corrects the behaviour of the itemtype selectbox in addbiblio.pl
If the subfield is set as mandatory with an empty default value, an empty value is added in the selectbox and this value is selected by default. Before, the first element was automatically selected, so it was easy to forget to set this mandatory value. Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
dc37fe9730
commit
f7d9ebbff3
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ sub build_authorized_values_list ($$$$$$$) {
|
||||||
"select itemtype,description from itemtypes order by description");
|
"select itemtype,description from itemtypes order by description");
|
||||||
$sth->execute;
|
$sth->execute;
|
||||||
push @authorised_values, ""
|
push @authorised_values, ""
|
||||||
unless ( $tagslib->{$tag}->{$subfield}->{mandatory} );
|
unless ( $tagslib->{$tag}->{$subfield}->{defaultvalue} and $tagslib->{$tag}->{$subfield}->{mandatory} );
|
||||||
|
|
||||||
my $itemtype;
|
my $itemtype;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue