Bug 6104: Modify item looses branch
If the $value is provided by the item, use it, don't use the librarian branch ! Signed-off-by: Sophie Meynieux <sophie.meynieux@biblibre.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
311e81810a
commit
b0374db5ff
|
|
@ -150,7 +150,7 @@ sub generate_subfield_form {
|
|||
foreach my $thisbranch (@$branches) {
|
||||
push @authorised_values, $thisbranch->{value};
|
||||
$authorised_lib{$thisbranch->{value}} = $thisbranch->{branchname};
|
||||
$value = $thisbranch->{value} if $thisbranch->{selected};
|
||||
$value = $thisbranch->{value} if $thisbranch->{selected} && !$value;
|
||||
}
|
||||
}
|
||||
elsif ( $subfieldlib->{authorised_value} eq "itemtypes" ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue