From b0374db5ffe1ef15a331eea3fd24b50fe8396b3b Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Thu, 7 Apr 2011 11:42:59 +0200 Subject: [PATCH] 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 --- cataloguing/additem.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ) { -- 2.39.5