From: Paul Poulain Date: Thu, 7 Apr 2011 09:42:59 +0000 (+0200) Subject: Bug 6104: Modify item looses branch X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=b0374db5ffe1ef15a331eea3fd24b50fe8396b3b;p=koha.git 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 Signed-off-by: Chris Cormack --- diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index b2b11929ab..e2dfc02fbd 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -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" ) {