Bug 17216: Do no display the empty string category name

Signed-off-by: Katrin Fischer  <katrin.fischer@bsz-bw.de>

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2016-09-19 12:35:40 +01:00 committed by Brendan Gallagher
parent 610dbfb5dd
commit 5d0dbcaabe

View file

@ -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 );