From cce20f27e714fa49985a8e8b53f57305796599e3 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Mon, 18 Jun 2012 11:23:42 +0100 Subject: [PATCH] Bug 6939 DefaultClassificationSource should be default in 942 A logic bug in the original code adding DefaultClassificationSource caused the default not to be used (the last used value was used instead) The bug was fixed in additem by bug 2398 but addbiblio's use of the code was not fixed. Signed-off-by: Nicole C. Engard Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack --- cataloguing/addbiblio.pl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl index d5778a4a59..d9edf7a2a4 100755 --- a/cataloguing/addbiblio.pl +++ b/cataloguing/addbiblio.pl @@ -215,10 +215,8 @@ sub build_authorized_values_list { ($class_source eq $default_source); push @authorised_values, $class_source; $authorised_lib{$class_source} = $class_sources->{$class_source}->{'description'}; - $value = $class_source unless ($value); - $value = $default_source unless ($value); } - #---- "true" authorised value + $value = $default_source unless $value; } else { $authorised_values_sth->execute( -- 2.39.5