Bug 6363 : Make the "Item Location" selectbox appears correctly in inventory.pl
authorFrédérick Capovilla <frederick.capovilla@sys-tech.net>
Wed, 18 May 2011 14:32:44 +0000 (10:32 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Fri, 10 Jun 2011 03:30:29 +0000 (15:30 +1200)
The "Item Location" selectbox didn't appear when the only available MARC
framework was the default framework.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
tools/inventory.pl

index cc7e8a7..7ca8baf 100755 (executable)
@@ -77,6 +77,8 @@ my @authorised_value_list;
 my $authorisedvalue_categories = '';
 
 my $frameworks = getframeworks();
+$frameworks->{''} = {frameworkcode => ''}; # Add the default framework
+
 for my $fwk (keys %$frameworks){
   my $fwkcode = $frameworks->{$fwk}->{'frameworkcode'};
   my $authcode = GetAuthValCode('items.location', $fwkcode);