From 28c8ec25e732b42e31793abc8896ddad472daf6f Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Thu, 7 Apr 2011 10:34:24 +0200 Subject: [PATCH] BZ6104: Modify item looses branch If the $value is provided by the item, use it, don't use the librarian branch ! --- cataloguing/additem.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index b2b1192..e2dfc02 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" ) { -- 1.7.1