[Koha-patches] [PATCH] [SIGNED-OFF] Make the "Item Location" selectbox appears correctly in inventory.pl
Katrin Fischer
Katrin.Fischer.83 at web.de
Sat May 21 23:06:57 CEST 2011
From: Frédérick Capovilla <frederick.capovilla at sys-tech.net>
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 at web.de>
---
tools/inventory.pl | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/tools/inventory.pl b/tools/inventory.pl
index cc7e8a7..7ca8baf 100755
--- a/tools/inventory.pl
+++ b/tools/inventory.pl
@@ -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);
--
1.7.4.1
More information about the Koha-patches
mailing list