Bug 17216: Do no display the empty string category name
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 19 Sep 2016 11:35:40 +0000 (12:35 +0100)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Tue, 11 Oct 2016 07:30:32 +0000 (07:30 +0000)
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
admin/authorised_values.pl

index 7829ad9..5aecc3c 100755 (executable)
@@ -208,7 +208,7 @@ $template->param(
 
 if ( $op eq 'list' ) {
     # build categories list
-    my @categories = Koha::AuthorisedValueCategories->search({ category_name => { -not_in => ['branches', 'itemtypes', 'cn_source']}}, { order_by => ['category_name'] } );
+    my @categories = Koha::AuthorisedValueCategories->search({ category_name => { -not_in => ['', 'branches', 'itemtypes', 'cn_source']}}, { order_by => ['category_name'] } );
     my @category_list;
     for my $category ( @categories ) {
         push( @category_list, $category->category_name );